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:
parent
33efcbac35
commit
89236987ce
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user