diff options
author | Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> | 2020-01-14 10:55:39 +0300 |
---|---|---|
committer | Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> | 2020-01-14 10:55:39 +0300 |
commit | c09dd9287cb53b00934b5dca7ecd92ac83964390 (patch) | |
tree | b14d3a6cbf70c67d8a1b089d24cdaefb1180641a /src/gui/systray.cpp | |
parent | 65b47d4613c0b290e2ba08c4cc9fb79d26a56f0b (diff) |
Fix missing trayScreen init in non-OSX clause
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Diffstat (limited to 'src/gui/systray.cpp')
-rw-r--r-- | src/gui/systray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index b01681c28..b817054d1 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -134,7 +134,7 @@ int Systray::calcTrayWindowX() int trayIconTopCenterX = (topRight - ((topRight - topLeft) * 0.5)).x(); return trayIconTopCenterX - (400 * 0.5); #else - + QScreen *trayScreen = QGuiApplication::primaryScreen(); int screenWidth = trayScreen->geometry().width(); int screenHeight = trayScreen->geometry().height(); int availableWidth = trayScreen->availableGeometry().width(); |