diff options
author | saturneric <[email protected]> | 2023-12-13 10:01:06 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-13 10:01:06 +0000 |
commit | 42264ed0d7a3c91fbe9f307984964ffc9e5fe65c (patch) | |
tree | a3ddecbd6ad723e42d68cc2c5aed7a88c4e242a3 /src/ui/GpgFrontendApplication.cpp | |
parent | feat: move test to src and add submodule googletest (diff) | |
download | GpgFrontend-42264ed0d7a3c91fbe9f307984964ffc9e5fe65c.tar.gz GpgFrontend-42264ed0d7a3c91fbe9f307984964ffc9e5fe65c.zip |
refactor: improve the structure of main,core and test module
Diffstat (limited to 'src/ui/GpgFrontendApplication.cpp')
-rw-r--r-- | src/ui/GpgFrontendApplication.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp index 7b079de1..a9e4efd2 100644 --- a/src/ui/GpgFrontendApplication.cpp +++ b/src/ui/GpgFrontendApplication.cpp @@ -53,25 +53,6 @@ GpgFrontendApplication::GpgFrontendApplication(int &argc, char *argv[]) QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8")); } -GpgFrontendApplication *GpgFrontendApplication::GetInstance(int argc, - char *argv[], - bool new_instance) { - static GpgFrontendApplication *instance = nullptr; - static int static_argc = argc; - static char **static_argv = argv; - - if (new_instance || !instance) { - if (instance != nullptr) { - SPDLOG_DEBUG("old application exists, quitting..."); - instance->quit(); - delete instance; - } - SPDLOG_DEBUG("creating new application instance, argc: {}", argc); - instance = new GpgFrontendApplication(static_argc, static_argv); - } - return instance; -} - bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) { #ifdef RELEASE try { |