mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-01 02:56:21 -04:00
revert old if structure
This commit is contained in:
parent
07d4668670
commit
c0640e49ee
1 changed files with 3 additions and 1 deletions
|
@ -660,7 +660,9 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
||||||
|
|
||||||
void MainWindow::closeEvent(QCloseEvent* event)
|
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();
|
event->ignore();
|
||||||
hideWindow();
|
hideWindow();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue