mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 14:56:44 +00:00 
			
		
		
		
	Ensure the launcher is not shown when the wizard is run
This commit is contained in:
		
							parent
							
								
									6348af586e
								
							
						
					
					
						commit
						0cc7c06262
					
				
					 2 changed files with 10 additions and 8 deletions
				
			
		|  | @ -55,9 +55,11 @@ int main(int argc, char *argv[]) | |||
|     if (!mainWin.showFirstRunDialog()) | ||||
|         return 0; | ||||
| 
 | ||||
| //    if (!mainWin.setup())
 | ||||
| //    if (!mainWin.setup()) {
 | ||||
| //        return 0;
 | ||||
| //    }
 | ||||
| 
 | ||||
|     mainWin.show(); | ||||
| 
 | ||||
|     int returnValue = app.exec(); | ||||
|     SDL_Quit(); | ||||
|  |  | |||
|  | @ -51,6 +51,9 @@ Launcher::MainDialog::MainDialog(QWidget *parent) | |||
|     mGameInvoker = new ProcessInvoker(); | ||||
|     mWizardInvoker = new ProcessInvoker(); | ||||
| 
 | ||||
|     connect(mWizardInvoker->getProcess(), SIGNAL(started()), | ||||
|             this, SLOT(wizardStarted())); | ||||
| 
 | ||||
|     connect(mWizardInvoker->getProcess(), SIGNAL(finished(int,QProcess::ExitStatus)), | ||||
|             this, SLOT(wizardFinished(int,QProcess::ExitStatus))); | ||||
| 
 | ||||
|  | @ -218,7 +221,6 @@ bool Launcher::MainDialog::setup() | |||
| 
 | ||||
|     loadSettings(); | ||||
| 
 | ||||
|     show(); | ||||
|     return true; | ||||
| } | ||||
| 
 | ||||
|  | @ -416,7 +418,7 @@ bool Launcher::MainDialog::setupGameSettings() | |||
|         } | ||||
| 
 | ||||
|         if (selectedFile.isEmpty()) | ||||
|             return false; // Cancel was clicked;
 | ||||
|             return false; // Cancel was clicked
 | ||||
| 
 | ||||
|         QFileInfo info(selectedFile); | ||||
| 
 | ||||
|  | @ -616,6 +618,7 @@ void Launcher::MainDialog::closeEvent(QCloseEvent *event) | |||
| void Launcher::MainDialog::wizardStarted() | ||||
| { | ||||
|     qDebug() << "wizard started!"; | ||||
|     hide(); | ||||
| } | ||||
| 
 | ||||
| void Launcher::MainDialog::wizardFinished(int exitCode, QProcess::ExitStatus exitStatus) | ||||
|  | @ -623,11 +626,8 @@ void Launcher::MainDialog::wizardFinished(int exitCode, QProcess::ExitStatus exi | |||
|     if (exitCode != 0 || exitStatus == QProcess::CrashExit) | ||||
|         return qApp->quit(); | ||||
| 
 | ||||
|     if (!setup()) | ||||
|         return; | ||||
| 
 | ||||
|     reloadSettings(); | ||||
|     show(); | ||||
|     if (reloadSettings()) | ||||
|         show(); | ||||
| } | ||||
| 
 | ||||
| void Launcher::MainDialog::play() | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue