aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/KeyDetailsDialog.cpp2
-rw-r--r--src/ui/KeyList.cpp7
2 files changed, 6 insertions, 3 deletions
diff --git a/src/ui/KeyDetailsDialog.cpp b/src/ui/KeyDetailsDialog.cpp
index b181ff7b..3be333a1 100644
--- a/src/ui/KeyDetailsDialog.cpp
+++ b/src/ui/KeyDetailsDialog.cpp
@@ -35,7 +35,7 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext *ctx, const GpgKey& key, QW
mainLayout->addWidget(tabWidget);
this->setLayout(mainLayout);
- this->setWindowTitle(tr("Keydetails"));
+ this->setWindowTitle(tr("Key Details"));
this->setModal(true);
this->show();
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)