D25315: KDirModel: implement showing a root node for the requested URL

2020-03-28 Thread David Faure
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit R241:78329e2eb60d: KDirModel: implement showing a root node for the requested URL (authored by dfaure). CHANGED PRIOR TO

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-27 Thread Raphael Rosch
rrosch added a comment. Tested, no crashes, it works as intended, and it is beautiful! Thank you! REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D25315 To: dfaure, stefanocrocco, elvisangelaccio, meven, apol Cc: rrosch, ahmadsamir, kde-frameworks-devel, LeGast00n,

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-24 Thread Raphael Rosch
rrosch added a comment. Hi, sorry for the lack of responses, for some reason I did not receive any of the notifications except this last one. I will test and comment as soon as I can. Wishing everyone safety and health too. REPOSITORY R241 KIO REVISION DETAIL

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-21 Thread David Faure
dfaure added a subscriber: rrosch. dfaure added a comment. @rrosch Does this now behave as expected? REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D25315 To: dfaure, stefanocrocco, elvisangelaccio, meven, apol Cc: rrosch, ahmadsamir, kde-frameworks-devel, LeGast00n,

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-11 Thread Ahmad Samir
ahmadsamir added inline comments. INLINE COMMENTS > dfaure wrote in kdirmodeltest_gui.cpp:92 > It doesn't look "normal" : without the ShowRoot feature, you wouldn't see the > "/" root node. > So I would say the test program is valid, no matter what the starting > directory is. > > (I was

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-11 Thread David Faure
dfaure added inline comments. INLINE COMMENTS > ahmadsamir wrote in kdirmodeltest_gui.cpp:92 > I did test the /usr/share/fonts path :); it's just that starting at "/" > looked "normal", whereas starting at a specific dir conveyed the goal of this > change better, to me anyway. It doesn't look

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-08 Thread Ahmad Samir
ahmadsamir added inline comments. INLINE COMMENTS > dfaure wrote in kdirmodel.h:79 > That sounds more confusing to me, depending on how one thinks about all this. > > There's nothing special about the first child compared to other direct > children, one misinterpretation of your suggested

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-08 Thread David Faure
dfaure marked an inline comment as done. dfaure added inline comments. INLINE COMMENTS > ahmadsamir wrote in kdirmodel.h:79 > I suggest: > s/its children/the first child/ OR > s/at its children/directly at the first child/ That sounds more confusing to me, depending on how one thinks about all

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-08 Thread David Faure
dfaure updated this revision to Diff 77224. dfaure added a comment. Add missing braces around one-line if() REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D25315?vs=77155=77224 BRANCH 2019_11_kdirmodel_root REVISION DETAIL

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-07 Thread Ahmad Samir
ahmadsamir added inline comments. INLINE COMMENTS > kdirmodeltest_gui.cpp:92 > +dirmodel->openUrl(QUrl(QStringLiteral("file:///")), > KDirModel::ShowRoot); > > const QUrl url = > QUrl::fromLocalFile(QStringLiteral("/usr/share/applications/kde")); I think a test with

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-07 Thread Ahmad Samir
ahmadsamir added inline comments. INLINE COMMENTS > kdirmodel.cpp:222 > +QUrl > parent(url.adjusted(QUrl::RemoveFilename|QUrl::StripTrailingSlash)); > +if (url.path() == QLatin1String("/")) > +parent.setPath(QString()); Braces around if. > kdirmodel.h:79 > + *

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-07 Thread David Faure
dfaure updated this revision to Diff 77155. dfaure added a comment. Strip trailing slashes, add test REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D25315?vs=76701=77155 BRANCH 2019_11_kdirmodel_root REVISION DETAIL https://phabricator.kde.org/D25315

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-07 Thread David Faure
dfaure added a comment. OK, reproduced by adding a test for a URL with a trailing slash. Fix coming up. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D25315 To: dfaure, stefanocrocco, elvisangelaccio, meven, apol Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2,

D25315: KDirModel: implement showing a root node for the requested URL

2020-03-01 Thread David Faure
dfaure added a comment. Well, I don't have your code. Which calls are you making into KDirModel? (openUrl(args=?), expandToUrl(args=?)) REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D25315 To: dfaure, stefanocrocco, elvisangelaccio, meven, apol Cc:

D25315: KDirModel: implement showing a root node for the requested URL

2020-02-29 Thread Raphael Rosch
rrosch added a comment. Crash: kf5.kio.kdirmodel: Items emitted in directory QUrl("file:///home/myuser/") but that directory isn't in KDirModel! Root directory: QUrl("file:///home/myuser/") KCrash: Application 'konqueror' crashing... This happens right after pressing F9 to

D25315: KDirModel: implement showing a root node for the requested URL

2020-02-29 Thread David Faure
dfaure updated this revision to Diff 76701. dfaure retitled this revision from "KDirModel: implement showing "/" as a root node, optionally" to "KDirModel: implement showing a root node for the requested URL". dfaure edited the summary of this revision. dfaure removed a subscriber: rrosch.