From d686d40bb49f7733172d53d2c41d988bf84efe32 Mon Sep 17 00:00:00 2001 From: Alexander Wilms <Alexander-Wilms@users.noreply.github.com> Date: Sat, 28 Oct 2023 15:44:17 +0000 Subject: [PATCH] launcher/firstLaunch/firstlaunch_moc.cpp: "static" members should be accessed statically --- launcher/firstLaunch/firstlaunch_moc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launcher/firstLaunch/firstlaunch_moc.cpp b/launcher/firstLaunch/firstlaunch_moc.cpp index cbcc2b7a3..7d09dd688 100644 --- a/launcher/firstLaunch/firstlaunch_moc.cpp +++ b/launcher/firstLaunch/firstlaunch_moc.cpp @@ -150,7 +150,7 @@ void FirstLaunchView::activateTabModPreset() void FirstLaunchView::exitSetup() { - if(auto * mainWindow = dynamic_cast<MainWindow *>(qApp->activeWindow())) + if(auto * mainWindow = dynamic_cast<MainWindow *>(QApplication::activeWindow())) mainWindow->exitSetup(); } @@ -160,7 +160,7 @@ void FirstLaunchView::languageSelected(const QString & selectedLanguage) Settings node = settings.write["general"]["language"]; node->String() = selectedLanguage.toStdString(); - if(auto * mainWindow = dynamic_cast<MainWindow *>(qApp->activeWindow())) + if(auto * mainWindow = dynamic_cast<MainWindow *>(QApplication::activeWindow())) mainWindow->updateTranslation(); } @@ -398,7 +398,7 @@ bool FirstLaunchView::checkCanInstallExtras() CModListView * FirstLaunchView::getModView() { - auto * mainWindow = dynamic_cast<MainWindow *>(qApp->activeWindow()); + auto * mainWindow = dynamic_cast<MainWindow *>(QApplication::activeWindow()); assert(mainWindow); if (!mainWindow)