diff options
author | saturneric <[email protected]> | 2024-07-28 13:28:14 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-07-28 13:28:14 +0000 |
commit | c1d0552cb33f80c4c8b7331e699ee867db2a2319 (patch) | |
tree | 7601b90c7928de1113c460a6b1a0d70ffc721d35 /src/ui/UserInterfaceUtils.cpp | |
parent | fix: passphrase corrected is not correct as the real one (diff) | |
download | GpgFrontend-c1d0552cb33f80c4c8b7331e699ee867db2a2319.tar.gz GpgFrontend-c1d0552cb33f80c4c8b7331e699ee867db2a2319.zip |
fix: can not import binary key data
Diffstat (limited to 'src/ui/UserInterfaceUtils.cpp')
-rw-r--r-- | src/ui/UserInterfaceUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp index 1d54c3cd..8f50636b 100644 --- a/src/ui/UserInterfaceUtils.cpp +++ b/src/ui/UserInterfaceUtils.cpp @@ -264,7 +264,7 @@ void CommonUtils::RaiseFailureMessageBox(QWidget *parent, GpgError err) { .arg(desc.second)); } -void CommonUtils::SlotImportKeys(QWidget *parent, const QString &in_buffer) { +void CommonUtils::SlotImportKeys(QWidget *parent, const QByteArray &in_buffer) { auto info = GpgKeyImportExporter::GetInstance().ImportKey(GFBuffer(in_buffer)); emit SignalKeyStatusUpdated(); @@ -310,7 +310,7 @@ void CommonUtils::SlotImportKeyFromKeyServer(QWidget *parent) { void CommonUtils::SlotImportKeyFromClipboard(QWidget *parent) { QClipboard *cb = QApplication::clipboard(); - SlotImportKeys(parent, cb->text(QClipboard::Clipboard)); + SlotImportKeys(parent, cb->text(QClipboard::Clipboard).toLatin1()); } void CommonUtils::SlotExecuteCommand( |