]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Unbreak context menu showing when right clicking on an empty area
authorLuca Beltrame <lbeltrame@kde.org>
Wed, 4 Sep 2019 09:36:42 +0000 (11:36 +0200)
committerLuca Beltrame <lbeltrame@kde.org>
Wed, 4 Sep 2019 09:36:42 +0000 (11:36 +0200)
In D22149, a request was made to remove a variable assignment ("action",
on line 389 in src/dolphincontextmenu.cpp. However the change went too
far, and it actually removed the exec() call, not just the assignment
which should have stayed.

This resulted in the context menu not being shown at all.

Adding back exec(m_pos) at least allows for the context menu to show.

CCMAIL: nate@kde.org

src/dolphincontextmenu.cpp

index 7e6a45171f3560d1b60494141c19da7db18dca61..056da4d8dfa5c44fef27f5c614923e9f93d2158d 100644 (file)
@@ -383,6 +383,8 @@ void DolphinContextMenu::openViewportContextMenu()
     addAction(propertiesAction);
 
     addShowMenuBarAction();
+
+    exec(m_pos);
 }
 
 void DolphinContextMenu::insertDefaultItemActions(const KFileItemListProperties& properties)