diff options
author | Saturn&Eric <[email protected]> | 2022-01-05 20:02:19 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-05 20:02:19 +0000 |
commit | a3ca1bf1d4404327d68d3d49127085638c272152 (patch) | |
tree | deb10c33977e5002fa6e9b434f2b07d2719a4e31 /src/ui/KeyUploadDialog.cpp | |
parent | Merge pull request #37 from saturneric/document (diff) | |
parent | <doc>(navbar): take repository and GitHub apart. (diff) | |
download | GpgFrontend-a3ca1bf1d4404327d68d3d49127085638c272152.tar.gz GpgFrontend-a3ca1bf1d4404327d68d3d49127085638c272152.zip |
Merge pull request #36 from saturneric/developv2.0.4
v2.0.4
Diffstat (limited to '')
-rw-r--r-- | src/ui/KeyUploadDialog.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/KeyUploadDialog.cpp b/src/ui/KeyUploadDialog.cpp index 52aa2bd3..d2b8c0bf 100644 --- a/src/ui/KeyUploadDialog.cpp +++ b/src/ui/KeyUploadDialog.cpp @@ -27,15 +27,14 @@ #include <algorithm> #include "gpg/function/GpgKeyGetter.h" -#include "gpg/function/GpgKeyImportExportor.h" +#include "gpg/function/GpgKeyImportExporter.h" #include "ui/settings/GlobalSettingStation.h" namespace GpgFrontend::UI { KeyUploadDialog::KeyUploadDialog(const KeyIdArgsListPtr& keys_ids, QWidget* parent) - : QDialog(parent), - mKeys(GpgKeyGetter::GetInstance().GetKeys(keys_ids)) { + : QDialog(parent), mKeys(GpgKeyGetter::GetInstance().GetKeys(keys_ids)) { auto* pb = new QProgressBar(); pb->setRange(0, 0); pb->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); @@ -54,13 +53,12 @@ KeyUploadDialog::KeyUploadDialog(const KeyIdArgsListPtr& keys_ids, void KeyUploadDialog::slotUpload() { auto out_data = std::make_unique<ByteArray>(); - GpgKeyImportExportor::GetInstance().ExportKeys(*mKeys, out_data); + GpgKeyImportExporter::GetInstance().ExportKeys(*mKeys, out_data); uploadKeyToServer(*out_data); } void KeyUploadDialog::uploadKeyToServer( const GpgFrontend::ByteArray& keys_data) { - std::string target_keyserver; if (target_keyserver.empty()) { try { |