diff options
author | Saturneric <[email protected]> | 2021-12-05 08:13:11 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-05 08:16:12 +0000 |
commit | c5bf73755506867295241dc05d7ef5837157ffa3 (patch) | |
tree | dbc87159fe807f584a180c44c69913465f803023 /src/ui/MainWindow.cpp | |
parent | Merge branch 'main' into develop (diff) | |
download | GpgFrontend-c5bf73755506867295241dc05d7ef5837157ffa3.tar.gz GpgFrontend-c5bf73755506867295241dc05d7ef5837157ffa3.zip |
Remove rapidjson and Improve update ploicy.
Diffstat (limited to 'src/ui/MainWindow.cpp')
-rw-r--r-- | src/ui/MainWindow.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/MainWindow.cpp b/src/ui/MainWindow.cpp index 6b0977fd..852d705b 100644 --- a/src/ui/MainWindow.cpp +++ b/src/ui/MainWindow.cpp @@ -51,7 +51,7 @@ void MainWindow::init() noexcept { networkAccessManager = new QNetworkAccessManager(this); - /* get path were app was started */ + /* get path where app was started */ setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea); setCorner(Qt::BottomRightCorner, Qt::RightDockWidgetArea); @@ -141,11 +141,13 @@ void MainWindow::init() noexcept { connect(version_thread, SIGNAL(finished()), version_thread, SLOT(deleteLater())); connect(version_thread, - SIGNAL(upgradeVersion(const QString&, const QString&)), this, - SLOT(slotVersionUpgrade(const QString&, const QString&))); + &VersionCheckThread::upgradeVersion, this, + &MainWindow::slotVersionUpgrade)); version_thread->start(); + #endif + } catch (...) { LOG(FATAL) << _("Critical error occur while loading GpgFrontend."); QMessageBox::critical(nullptr, _("Loading Failed"), |