mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
launcher/firstLaunch/firstlaunch_moc.cpp: "static" members should be accessed statically
This commit is contained in:
parent
a6db82f6f1
commit
d686d40bb4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user