Fix flickering & not restoring from tray on some Linuxes (#1595).

Fix/work around KeePassXC flickering and not restoring from tray on some Linux systems, which happens if the window is hidden and minimized by code at the same time (see issue #1595).
This commit is contained in:
Joan Bruguera authored and TheZ3ro committed 2018-03-12 21:30:25 +01:00
1 parent f620ad979f
commit 319c8201be
2 files changed
+1 -4

No files matched your search

-3
View File
@@ -971,9 +971,6 @@ void MainWindow::trayIconTriggered(QSystemTrayIcon::ActivationReason reason)
void MainWindow::hideWindow()
{
saveWindowInformation();
#ifndef Q_OS_MAC
setWindowState(windowState() | Qt::WindowMinimized);
#endif
QTimer::singleShot(0, this, SLOT(hide()));
if (config()->get("security/lockdatabaseminimize").toBool()) {