mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Do not ignore MainWindow closeEvent when closing to tray
Ignoring closeEvent signals that the application doesn't want the widget to be closed. This may cause unwanted shutdown interruption. There's no difference between close() and hide() unless WA_DeleteOnClose is set, so it's better to just accept the event if we're hiding the window afterwards anyway. Resolves #856
This commit is contained in:
parent
4a207f079b
commit
0650b3084e
@ -797,7 +797,7 @@ void MainWindow::closeEvent(QCloseEvent* event)
|
|||||||
config()->get("GUI/MinimizeOnClose").toBool();
|
config()->get("GUI/MinimizeOnClose").toBool();
|
||||||
if (minimizeOnClose && !m_appExitCalled)
|
if (minimizeOnClose && !m_appExitCalled)
|
||||||
{
|
{
|
||||||
event->ignore();
|
event->accept();
|
||||||
hideWindow();
|
hideWindow();
|
||||||
|
|
||||||
if (config()->get("security/lockdatabaseminimize").toBool()) {
|
if (config()->get("security/lockdatabaseminimize").toBool()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user