Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2020-02-24 14:33:43 +0300
committerJonathan White <support@dmapps.us>2020-02-28 07:25:44 +0300
commitb9daed20558103e3c8e799f3e0575522bf823df6 (patch)
tree8950af13395e12d39f836a07910d67f69b026081 /src/core/Clock.h
parenteb88b8cc0c1440f958a7ec625e5733b3b33f8c7d (diff)
Correct issues with hiding and minimizing the MainWindow
The GUI features depend on windowing system used, not just OS. There is an issue with the WM sometimes producing an event that keepassxc interprets as request to hide the main window just after it is shown. A workaround with immediately firing a timer was implemented. However, there is no guarantee on execution ordering of the timer callback and other application code. Remove the timer and override show() and hide() on main window to only hide if the window has not been shown recently. The user can set an option to hide window instead of minimizing when tray icon is enabled. This is not honored in most places where the main windows is minimized. Fix it. This also allows using the tray icon as a workaround for minimization not working under some circumstances in X11. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Diffstat (limited to 'src/core/Clock.h')
-rw-r--r--src/core/Clock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/Clock.h b/src/core/Clock.h
index 8f81b0961..4d1ee2537 100644
--- a/src/core/Clock.h
+++ b/src/core/Clock.h
@@ -28,6 +28,7 @@ public:
static QDateTime currentDateTime();
static uint currentSecondsSinceEpoch();
+ static qint64 currentMilliSecondsSinceEpoch();
static QDateTime serialized(const QDateTime& dateTime);