mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Merge pull request #532 from dresco/geometry-fix
Fix for 'stuck in full screen' issue
This commit is contained in:
@@ -221,7 +221,15 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
font.setPointSize(app.defaultFont);
|
||||
QApplication::setFont(font);
|
||||
|
||||
} else setGeometry(geom.toRect());
|
||||
} else {
|
||||
QRect size = desktop->availableGeometry();
|
||||
|
||||
// ensure saved geometry isn't greater than current screen size
|
||||
if ((geom.toRect().height() > size.height()) || (geom.toRect().width() > size.width()))
|
||||
setGeometry(size);
|
||||
else
|
||||
setGeometry(geom.toRect());
|
||||
}
|
||||
|
||||
|
||||
#ifdef Q_OS_MAC // MAC NATIVE TOOLBAR
|
||||
|
||||
Reference in New Issue
Block a user