Unbreak context menu showing when right clicking on an empty area

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
This commit is contained in:
Luca Beltrame 2019-09-04 11:36:42 +02:00
parent 3df68fb667
commit d23fba320f
No known key found for this signature in database
GPG key ID: 8DF631FD021DB0C5

View file

@ -383,6 +383,8 @@ void DolphinContextMenu::openViewportContextMenu()
addAction(propertiesAction);
addShowMenuBarAction();
exec(m_pos);
}
void DolphinContextMenu::insertDefaultItemActions(const KFileItemListProperties& properties)