no silent install

This commit is contained in:
Laserlicht authored and GitHub committed 2024-01-06 14:50:00 +01:00
1 parent 33efcbac35
commit 89236987ce
1 file changed
+7 -2
+7 -2
View File
@@ -139,7 +139,12 @@ void FirstLaunchView::activateTabHeroesData()
QString installPath = getHeroesInstallDir();
if(!installPath.isEmpty())
copyHeroesData(installPath);
{
QMessageBox::StandardButton reply;
reply = QMessageBox::question(this, tr("Heroes III installation found!"), tr("Copy data to VCMI folder?"), QMessageBox::Yes|QMessageBox::No);
if(reply == QMessageBox::Yes)
copyHeroesData(installPath);
}
}
void FirstLaunchView::activateTabModPreset()
@@ -271,7 +276,7 @@ QString FirstLaunchView::getHeroesInstallDir()
if(!cdPath.isEmpty())
return cdPath;
#endif
return "";
return QString{};
}
void FirstLaunchView::copyHeroesData(const QString & path)