aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/KeyList.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-21 16:31:17 +0000
committerSaturneric <[email protected]>2021-05-21 16:31:17 +0000
commit4f33854578ede93fd691bab17065ed67368a72ad (patch)
treeb09cc947b3f1deeeadb63c579ecbce8da429f8e4 /src/ui/KeyList.cpp
parentExpand Key Details Dialog; (diff)
downloadGpgFrontend-4f33854578ede93fd691bab17065ed67368a72ad.tar.gz
GpgFrontend-4f33854578ede93fd691bab17065ed67368a72ad.zip
popupMenu now Exec When mKeyList HAS item(s) Selected.
mKeyList Sorting Disabled. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to 'src/ui/KeyList.cpp')
-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)