From 18ede097614208fdd53c00a46886c6f6404aaf0c Mon Sep 17 00:00:00 2001 From: gitlost Date: Thu, 16 Jun 2022 17:27:19 +0100 Subject: [PATCH] GUI: primaryScreen -> primaryScreen() --- frontend_qt/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend_qt/mainwindow.cpp b/frontend_qt/mainwindow.cpp index 7805f975..0d8f858b 100644 --- a/frontend_qt/mainwindow.cpp +++ b/frontend_qt/mainwindow.cpp @@ -216,7 +216,7 @@ MainWindow::MainWindow(QWidget *parent, Qt::WindowFlags fl) // Standard width 360 too narrow if (saved_geometry.isNull()) { // Seems this is necessary on macOS to get a reasonable initial height - setMinimumSize(QSize(460, (int) (QApplication::primaryScreen->availableSize().height() * 0.9f))); + setMinimumSize(QSize(460, (int) (QApplication::primaryScreen()->availableSize().height() * 0.9f))); } else { setMinimumSize(QSize(460, 0)); }