]> cloud.milkyroute.net Git - dolphin.git/commit
[DolphinContextMenu] Use the view's already existing root KFileItem
authorKai Uwe Broulik <kde@privat.broulik.de>
Wed, 5 Sep 2018 10:25:39 +0000 (12:25 +0200)
committerKai Uwe Broulik <kde@privat.broulik.de>
Wed, 5 Sep 2018 10:25:39 +0000 (12:25 +0200)
commit8f10b5540c091b47df1b7a92aa96baaf126ef2dc
tree0e152c754dc3795ef513a2d0b49585f505f452d2
parent289ef9fa49c9a0a0e648a8545acf70bc6e00342c
[DolphinContextMenu] Use the view's already existing root KFileItem

Saves creating a new KFileItem from scratch which stats the file.
Only when the root item isn't available (as can happen when you're currently looking at an non-existing directory)
will it create a new KFileItem

Differential Revision: https://phabricator.kde.org/D15266
src/dolphincontextmenu.cpp