commit 91ef1c3472af7545be69fbb0b56d130bcbcc7908
parent 8e03a6c3f931aa6597eed1a1e2bc7250c20f3f96
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 12 Nov 2017 17:07:01 -0500
browser: don't add two consecutive separators in the context menu when selection > 1 and the cursor is not above a package
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/browser.cpp b/src/browser.cpp
@@ -261,9 +261,9 @@ void Browser::fillMenu(Menu &menu)
if(m_list->selectionSize() > 1) {
fillSelectionMenu(menu);
- menu.addSeparator();
if(entry) {
+ menu.addSeparator();
Menu pkgMenu = menu.addMenu("Package under cursor");
entry->fillMenu(pkgMenu);
}