diff options
author | Saturneric <[email protected]> | 2022-01-02 03:40:22 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-02 03:40:22 +0000 |
commit | a056f2186de2470d4328bd1cd682e5e484af4587 (patch) | |
tree | 27775ca169ad93fc812e94a4da99ebd3fa1c53f9 /src/ui/widgets/KeyList.cpp | |
parent | <refactor, test>(core, test): test decryption when key not found (diff) | |
download | GpgFrontend-a056f2186de2470d4328bd1cd682e5e484af4587.tar.gz GpgFrontend-a056f2186de2470d4328bd1cd682e5e484af4587.zip |
<refactor, fixed, test>(core, ui): add & modify core and ui
1. add init functions for core.
2. add non ascii settings.
3. fit ui with this version of core.
Diffstat (limited to 'src/ui/widgets/KeyList.cpp')
-rw-r--r-- | src/ui/widgets/KeyList.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp index 464727dc..3b13196f 100644 --- a/src/ui/widgets/KeyList.cpp +++ b/src/ui/widgets/KeyList.cpp @@ -27,6 +27,7 @@ #include <boost/format.hpp> #include <utility> +#include "gpg/GpgCoreInit.h" #include "gpg/function/GpgKeyGetter.h" #include "ui/SignalStation.h" #include "ui/UserInterfaceUtils.h" @@ -55,6 +56,8 @@ void KeyList::init() { GpgContext::CreateInstance( _m_key_list_id, std::make_unique<GpgContext>(true, db_path.string(), true, gpg_path.string())); +#else + new_default_settings_channel(_m_key_list_id); #endif ui->setupUi(this); @@ -375,7 +378,7 @@ void KeyList::dragEnterEvent(QDragEnterEvent* event) { void KeyList::importKeys(const QByteArray& inBuffer) { auto std_buffer = std::make_unique<ByteArray>(inBuffer.toStdString()); GpgImportInformation result = - GpgKeyImportExportor::GetInstance(_m_key_list_id) + GpgKeyImportExporter::GetInstance(_m_key_list_id) .ImportKey(std::move(std_buffer)); new KeyImportDetailDialog(result, false, this); } |