diff options
author | saturneric <[email protected]> | 2024-07-26 16:24:34 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-07-26 16:24:34 +0000 |
commit | 37a62a8d0b590710b902376ca3320cc05e954b63 (patch) | |
tree | 349ecff21e5cf53d8eedbae7886404417ecdad05 /src/ui/dialog/import_export/KeyServerImportDialog.cpp | |
parent | fix: correct urls at appdata.xml (diff) | |
download | GpgFrontend-37a62a8d0b590710b902376ca3320cc05e954b63.tar.gz GpgFrontend-37a62a8d0b590710b902376ca3320cc05e954b63.zip |
feat: remove spdlog and clean up log
Diffstat (limited to 'src/ui/dialog/import_export/KeyServerImportDialog.cpp')
-rw-r--r-- | src/ui/dialog/import_export/KeyServerImportDialog.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ui/dialog/import_export/KeyServerImportDialog.cpp b/src/ui/dialog/import_export/KeyServerImportDialog.cpp index 575a97e4..af00549d 100644 --- a/src/ui/dialog/import_export/KeyServerImportDialog.cpp +++ b/src/ui/dialog/import_export/KeyServerImportDialog.cpp @@ -110,7 +110,7 @@ KeyServerImportDialog::KeyServerImportDialog(QWidget* parent) main_layout->addLayout(buttons_layout, 6, 0, 1, 3); this->setLayout(main_layout); - this->setWindowTitle(tr("Import Keys from Keyserver")); + this->setWindowTitle(tr("Import Keys from key server")); this->setModal(true); movePosition2CenterOfParent(); @@ -132,7 +132,7 @@ auto KeyServerImportDialog::create_combo_box() -> QComboBox* { } combo_box->setCurrentText(key_server.GetTargetServer()); } catch (...) { - GF_UI_LOG_ERROR("setting operation error", "server_list", "default_server"); + qCWarning(ui, "setting operation error server_list default_server"); } return combo_box; @@ -208,16 +208,12 @@ void KeyServerImportDialog::slot_search() { void KeyServerImportDialog::slot_search_finished( QNetworkReply::NetworkError error, QByteArray buffer) { - GF_UI_LOG_DEBUG("search result {} {}", error, buffer.size()); - keys_table_->clearContents(); keys_table_->setRowCount(0); auto stream = QTextStream(buffer); if (error != QNetworkReply::NoError) { - GF_UI_LOG_DEBUG("error from reply: {}", error); - switch (error) { case QNetworkReply::ContentNotFoundError: set_message(tr("Not Key Found"), true); @@ -414,7 +410,6 @@ void KeyServerImportDialog::slot_import_finished( set_loading(false); if (!success) { - GF_UI_LOG_ERROR("error from reply: {}", buffer); set_message(err_msg, true); return; } |