diff options
author | Saturneric <[email protected]> | 2021-05-21 16:31:17 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-05-21 16:31:17 +0000 |
commit | 4f33854578ede93fd691bab17065ed67368a72ad (patch) | |
tree | b09cc947b3f1deeeadb63c579ecbce8da429f8e4 /src/ui/KeyList.cpp | |
parent | Expand Key Details Dialog; (diff) | |
download | GpgFrontend-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.cpp | 7 |
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) |