Fixed: Only ask once if user want to uninstall Ryzom, see #279

This commit is contained in:
kervala 2016-09-14 08:13:20 +02:00
parent a5c209f83b
commit 86546c56dc

View file

@ -793,9 +793,14 @@ void COperationDialog::uninstallOldClient()
if (button == QMessageBox::Yes) if (button == QMessageBox::Yes)
{ {
// remember the choice
CConfigFile::getInstance()->setShouldUninstallOldClient(true); CConfigFile::getInstance()->setShouldUninstallOldClient(true);
// launch old uninstaller
QDesktopServices::openUrl(QUrl::fromLocalFile(uninstaller)); QDesktopServices::openUrl(QUrl::fromLocalFile(uninstaller));
// to not ask twice
CConfigFile::getInstance()->setUninstallingOldClient(true);
} }
else else
{ {