0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-20 12:22:16 +02:00

revert old if structure

This commit is contained in:
thez3ro 2017-05-19 14:30:09 +02:00
parent 07d4668670
commit c0640e49ee
No known key found for this signature in database
GPG Key ID: F628F9E41DD7C073

View File

@ -660,7 +660,9 @@ void MainWindow::databaseTabChanged(int tabIndex)
void MainWindow::closeEvent(QCloseEvent* event)
{
if (isTrayIconEnabled() && config()->get("GUI/MinimizeOnClose").toBool() && !appExitCalled)
bool minimizeOnClose = isTrayIconEnabled() &&
config()->get("GUI/MinimizeOnClose").toBool();
if (minimizeOnClose && !appExitCalled)
{
event->ignore();
hideWindow();