aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/KeyList.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ui/KeyList.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/KeyList.cpp b/src/ui/KeyList.cpp
index a561b738..6931dc8d 100644
--- a/src/ui/KeyList.cpp
+++ b/src/ui/KeyList.cpp
@@ -139,7 +139,7 @@ void KeyList::slotRefresh()
it++;
++row;
}
- mKeyList->setSortingEnabled(true);
+ // mKeyList->setSortingEnabled(true);
setChecked(keyList);
}
@@ -216,7 +216,10 @@ void KeyList::setColumnWidth(int row, int size)
void KeyList::contextMenuEvent(QContextMenuEvent *event)
{
- popupMenu->exec(event->globalPos());
+ if (mKeyList->selectedItems().length() > 0) {
+ popupMenu->exec(event->globalPos());
+ }
+
}
void KeyList::addMenuAction(QAction *act)