mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:35:23 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
windowManager()->quitByCheckPassword();
|
windowManager()->quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrayIcon::addHotKey(QAction *action, const QString &shortcutText)
|
void TrayIcon::addHotKey(QAction *action, const QString &shortcutText)
|
||||||
|
@ -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";
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user