UI: Don't check password on Quit

This commit is contained in:
Nodir Temirkhodjaev 2023-03-08 13:50:08 +03:00
parent 9dac49f6c1
commit 0f37bdcbdf
3 changed files with 3 additions and 6 deletions

View File

@ -585,7 +585,7 @@ void TrayIcon::quitProgram()
return; return;
} }
windowManager()->quitByCheckPassword(); windowManager()->quit();
} }
void TrayIcon::addHotKey(QAction *action, const QString &shortcutText) void TrayIcon::addHotKey(QAction *action, const QString &shortcutText)

View File

@ -446,11 +446,8 @@ void WindowManager::switchGraphWindow()
closeGraphWindow(); closeGraphWindow();
} }
void WindowManager::quitByCheckPassword() void WindowManager::quit()
{ {
if (!checkPassword())
return;
closeAll(); closeAll();
qCDebug(LC) << "Quit due user request"; qCDebug(LC) << "Quit due user request";

View File

@ -80,8 +80,8 @@ public slots:
void switchGraphWindow(); void switchGraphWindow();
void closeAll(); void closeAll();
void quit();
void quitByCheckPassword();
bool widgetVisibleByCheckPassword(QWidget *w); bool widgetVisibleByCheckPassword(QWidget *w);
bool checkPassword(); bool checkPassword();