aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/MainWindow.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2021-12-13 18:46:23 +0000
committerGitHub <[email protected]>2021-12-13 18:46:23 +0000
commit5d8e24b7ce4620164c3268b4f1de43a30df19a86 (patch)
tree6defd5d68468a95de980752ccf2c4ef8a0753617 /src/ui/MainWindow.cpp
parentCreate SECURITY.md (diff)
parentUpdate Translations & README. (diff)
downloadGpgFrontend-5d8e24b7ce4620164c3268b4f1de43a30df19a86.tar.gz
GpgFrontend-5d8e24b7ce4620164c3268b4f1de43a30df19a86.zip
Merge pull request #32 from saturneric/developv2.0.2
v2.0.2-beta.2
Diffstat (limited to 'src/ui/MainWindow.cpp')
-rw-r--r--src/ui/MainWindow.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/ui/MainWindow.cpp b/src/ui/MainWindow.cpp
index 9aceed96..6d55aeb5 100644
--- a/src/ui/MainWindow.cpp
+++ b/src/ui/MainWindow.cpp
@@ -38,18 +38,7 @@ MainWindow::MainWindow() {
}
void MainWindow::init() noexcept {
- LOG(INFO) << _("Called");
try {
- // Check Context Status
- if (!GpgContext::GetInstance().good()) {
- QMessageBox::critical(
- nullptr, _("ENV Loading Failed"),
- _("Gnupg is not installed correctly, please follow the ReadME "
- "instructions to install gnupg and then open GpgFrontend."));
- QCoreApplication::quit();
- exit(0);
- }
-
networkAccessManager = new QNetworkAccessManager(this);
/* get path where app was started */
@@ -64,7 +53,7 @@ void MainWindow::init() noexcept {
mKeyList->slotRefresh();
- infoBoard = new InfoBoardWidget(this, mKeyList);
+ infoBoard = new InfoBoardWidget(this);
/* List of binary Attachments */
attachmentDockCreated = false;
@@ -139,7 +128,6 @@ void MainWindow::init() noexcept {
version_thread->start();
#endif
-
} catch (...) {
LOG(FATAL) << _("Critical error occur while loading GpgFrontend.");
QMessageBox::critical(nullptr, _("Loading Failed"),