Commit 71e46521 authored by Felipe Kinoshita's avatar Felipe Kinoshita 🌎 Committed by Nate Graham
Browse files

Assing first screen if `screen` is null

BUG: 438277


(cherry picked from commit 60ab3258)
parent e8fd8c5e
......@@ -86,7 +86,7 @@ KlipperPopup::KlipperPopup(History *history)
QRect geometry = windowInfo.geometry();
QScreen *screen = QGuiApplication::screenAt(geometry.center());
if (screen == nullptr) {
return;
screen = QGuiApplication::screens()[0];
}
int menuHeight = (screen->geometry().height()) * 3 / 4;
int menuWidth = (screen->geometry().width()) * 1 / 3;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment