mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Changed: Return 1 if user aborted operation
--HG-- branch : develop
This commit is contained in:
parent
2a4ae9ba6c
commit
86e143191c
1 changed files with 15 additions and 29 deletions
|
@ -22,9 +22,6 @@
|
||||||
#include "uninstallwizarddialog.h"
|
#include "uninstallwizarddialog.h"
|
||||||
#include "operationdialog.h"
|
#include "operationdialog.h"
|
||||||
|
|
||||||
#include "nel/misc/path.h"
|
|
||||||
#include "nel/misc/ucstring.h"
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -59,8 +56,6 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
// TODO: parameters -u (uinstall) and -s (silent)
|
|
||||||
|
|
||||||
QApplication::setApplicationName("Ryzom");
|
QApplication::setApplicationName("Ryzom");
|
||||||
QApplication::setApplicationVersion(RYZOM_VERSION);
|
QApplication::setApplicationVersion(RYZOM_VERSION);
|
||||||
QApplication::setWindowIcon(QIcon(":/icons/ryzom.ico"));
|
QApplication::setWindowIcon(QIcon(":/icons/ryzom.ico"));
|
||||||
|
@ -152,40 +147,31 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
CMigrateWizardDialog dialog;
|
CMigrateWizardDialog dialog;
|
||||||
|
|
||||||
if (!dialog.exec()) displayMainWindow = false;
|
if (!dialog.exec()) return 1;
|
||||||
|
|
||||||
|
step = config.getNextStep();
|
||||||
}
|
}
|
||||||
else if (step == CConfigFile::ShowInstallWizard)
|
else if (step == CConfigFile::ShowInstallWizard)
|
||||||
{
|
{
|
||||||
CInstallWizardDialog dialog;
|
CInstallWizardDialog dialog;
|
||||||
|
|
||||||
if (!dialog.exec()) displayMainWindow = false;
|
if (!dialog.exec()) return 1;
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (displayMainWindow)
|
|
||||||
{
|
|
||||||
step = config.getNextStep();
|
step = config.getNextStep();
|
||||||
|
|
||||||
if (step != CConfigFile::Done)
|
|
||||||
{
|
|
||||||
COperationDialog dialog;
|
|
||||||
|
|
||||||
if (!dialog.exec()) displayMainWindow = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (displayMainWindow)
|
if (step != CConfigFile::Done)
|
||||||
{
|
{
|
||||||
|
COperationDialog dialog;
|
||||||
|
dialog.setOperation(config.getSrcServerDirectory().isEmpty() ? COperationDialog::OperationInstall: COperationDialog::OperationMigrate);
|
||||||
|
|
||||||
|
if (!dialog.exec()) return 1;
|
||||||
|
|
||||||
step = config.getNextStep();
|
step = config.getNextStep();
|
||||||
|
|
||||||
if (step == CConfigFile::Done)
|
|
||||||
{
|
|
||||||
CMainWindow mainWindow;
|
|
||||||
mainWindow.show();
|
|
||||||
|
|
||||||
return QApplication::exec();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
CMainWindow mainWindow;
|
||||||
|
mainWindow.show();
|
||||||
|
|
||||||
|
return QApplication::exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue