mirror of
https://github.com/tnodir/fort
synced 2024-11-15 03:56:18 +00:00
UI: Don't check password on Quit
This commit is contained in:
parent
9dac49f6c1
commit
0f37bdcbdf
@ -585,7 +585,7 @@ void TrayIcon::quitProgram()
|
||||
return;
|
||||
}
|
||||
|
||||
windowManager()->quitByCheckPassword();
|
||||
windowManager()->quit();
|
||||
}
|
||||
|
||||
void TrayIcon::addHotKey(QAction *action, const QString &shortcutText)
|
||||
|
@ -446,11 +446,8 @@ void WindowManager::switchGraphWindow()
|
||||
closeGraphWindow();
|
||||
}
|
||||
|
||||
void WindowManager::quitByCheckPassword()
|
||||
void WindowManager::quit()
|
||||
{
|
||||
if (!checkPassword())
|
||||
return;
|
||||
|
||||
closeAll();
|
||||
|
||||
qCDebug(LC) << "Quit due user request";
|
||||
|
@ -80,8 +80,8 @@ public slots:
|
||||
void switchGraphWindow();
|
||||
|
||||
void closeAll();
|
||||
void quit();
|
||||
|
||||
void quitByCheckPassword();
|
||||
bool widgetVisibleByCheckPassword(QWidget *w);
|
||||
bool checkPassword();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user