diff options
Diffstat (limited to 'src/ui/widgets/KeyList.cpp')
-rw-r--r-- | src/ui/widgets/KeyList.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp index 0bd65f25..9150d580 100644 --- a/src/ui/widgets/KeyList.cpp +++ b/src/ui/widgets/KeyList.cpp @@ -158,7 +158,7 @@ void KeyList::AddListGroupTab( } void KeyList::SlotRefresh() { - LOG(INFO) << _("Called") << "address" << this; + LOG(INFO) << _("called") << "address" << this; ui_->refreshKeyListButton->setDisabled(true); ui_->syncButton->setDisabled(true); @@ -442,6 +442,8 @@ void KeyList::slot_sync_with_key_server() { } } + if (key_ids.empty()) return; + ui_->refreshKeyListButton->setDisabled(true); ui_->syncButton->setDisabled(true); @@ -496,7 +498,6 @@ void KeyList::check_all() { } KeyIdArgsListPtr& KeyTable::GetChecked() { - LOG(INFO) << "called"; if (checked_key_ids_ == nullptr) checked_key_ids_ = std::make_unique<KeyIdArgsList>(); auto& ret = checked_key_ids_; @@ -517,8 +518,6 @@ void KeyTable::SetChecked(KeyIdArgsListPtr key_ids) { } void KeyTable::Refresh(KeyLinkListPtr m_keys) { - LOG(INFO) << "called"; - auto& checked_key_list = GetChecked(); // while filling the table, sort enabled causes errors @@ -532,7 +531,6 @@ void KeyTable::Refresh(KeyLinkListPtr m_keys) { else keys = std::move(m_keys); - LOG(INFO) << "keys size: " << keys->size(); auto it = keys->begin(); int row_count = 0; @@ -553,7 +551,6 @@ void KeyTable::Refresh(KeyLinkListPtr m_keys) { it++; } - LOG(INFO) << "row_count: " << row_count; key_list_->setRowCount(row_count); int row_index = 0; @@ -645,8 +642,6 @@ void KeyTable::Refresh(KeyLinkListPtr m_keys) { } } } - - LOG(INFO) << "End"; } void KeyTable::UncheckALL() const { |