1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

no silent install

This commit is contained in:
Laserlicht 2024-01-06 14:50:00 +01:00 committed by GitHub
parent 33efcbac35
commit 89236987ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)