浏览代码

launcher/firstLaunch/firstlaunch_moc.cpp: "static" members should be accessed statically

Alexander Wilms 2 年之前
父节点
当前提交
d686d40bb4
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      launcher/firstLaunch/firstlaunch_moc.cpp

+ 3 - 3
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)