mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Fix crash at shutdown.
The context pointer was dereferenced after the context object was deleted. This is fixed by storing a pointer to the MainWindow in QTFullScreen, so context does not have to be dereferenced. The logic in QTFullScreen::eventFilter is also simplified a bit.
This commit is contained in:
@@ -145,7 +145,7 @@ MainWindow::MainWindow(const QDir &home)
|
||||
static const QIcon fullIcon(":images/toolbar/main/togglefull.png");
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
fullScreen = new QTFullScreen(context);
|
||||
fullScreen = new QTFullScreen(this);
|
||||
#endif
|
||||
|
||||
// if no workout directory is configured, default to the
|
||||
|
||||
Reference in New Issue
Block a user