From 51bc98e48e791a4a6b6968c97fe0c391971af0e1 Mon Sep 17 00:00:00 2001 From: niansa Date: Wed, 2 Sep 2020 13:37:33 +0200 Subject: [PATCH] Fixed critical bug (auther now deleted only if no longer needed) --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 6a8d06e..1f81445 100644 --- a/main.cpp +++ b/main.cpp @@ -194,9 +194,9 @@ void _UILoader::loginWindow(const QString& failure) { // Login try { settings->setValue("server_sid", auther->getSID(netReply)); - auther->deleteLater(); cacheInvalidate = true; - return overviewWindow(false); + overviewWindow(false); + auther->deleteLater(); } catch (authFailureError&) { thisui->failureText->setText("Die eingegebenen Anmeldedaten sind ungültig"); } catch (libCommsy::invalidRoomError&) {