aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/MainWindow.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-13 11:24:42 +0000
committerSaturneric <[email protected]>2021-12-13 11:24:42 +0000
commit53ab9c982e7d895d48d5ddddf7bae2022e9c583a (patch)
tree2a610bf2cb303a0410344336952811155ff53b10 /src/ui/MainWindow.cpp
parentUpdate Translate & Added. (diff)
downloadGpgFrontend-53ab9c982e7d895d48d5ddddf7bae2022e9c583a.tar.gz
GpgFrontend-53ab9c982e7d895d48d5ddddf7bae2022e9c583a.zip
Add Stable Restart from Exception Function
Diffstat (limited to 'src/ui/MainWindow.cpp')
-rw-r--r--src/ui/MainWindow.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/ui/MainWindow.cpp b/src/ui/MainWindow.cpp
index f9266297..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 */
@@ -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"),