Skip to content

Commit

Permalink
Fixed compilation issue under Ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Jan 31, 2025
1 parent 7212f10 commit 07b6f69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,11 @@ void MainWindow::setLayoutGeometry()
// workaround for QTBUG-46620
// side-effet - sometime it sets fullscreen mode
if ( isMaximized() )
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
setGeometry(screen()->availableGeometry());
#else
setGeometry(QApplication::desktop()->availableGeometry(this));
#endif
#endif

// workaround for QTBUG-46620
Expand Down

0 comments on commit 07b6f69

Please sign in to comment.