aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/KeyList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widgets/KeyList.cpp')
-rw-r--r--src/ui/widgets/KeyList.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp
index 0bd65f25..ad76467e 100644
--- a/src/ui/widgets/KeyList.cpp
+++ b/src/ui/widgets/KeyList.cpp
@@ -379,7 +379,9 @@ void KeyList::dragEnterEvent(QDragEnterEvent* event) {
*
*/
[[maybe_unused]] void KeyList::MarkKeys(QStringList* keyIds) {
- foreach (QString id, *keyIds) { qDebug() << "marked: " << id; }
+ foreach (QString id, *keyIds) {
+ qDebug() << "marked: " << id;
+ }
}
void KeyList::import_keys(const QByteArray& inBuffer) {
@@ -442,6 +444,8 @@ void KeyList::slot_sync_with_key_server() {
}
}
+ if (key_ids.empty()) return;
+
ui_->refreshKeyListButton->setDisabled(true);
ui_->syncButton->setDisabled(true);