mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:20:05 +00:00 
			
		
		
		
	Display an informational dialog when OpenGL cannot properly be initialized
This commit is contained in:
		
							parent
							
								
									a6f8547455
								
							
						
					
					
						commit
						8e9db6a2fe
					
				
					 3 changed files with 69 additions and 22 deletions
				
			
		|  | @ -151,8 +151,23 @@ int main(int argc, char* argv[]) | |||
|       // Run Qt main loop
 | ||||
|       { | ||||
|          scwx::qt::main::MainWindow w; | ||||
|          w.show(); | ||||
|          result = a.exec(); | ||||
| 
 | ||||
|          bool initialized = false; | ||||
| 
 | ||||
|          try | ||||
|          { | ||||
|             w.show(); | ||||
|             initialized = true; | ||||
|          } | ||||
|          catch (const std::exception& ex) | ||||
|          { | ||||
|             logger_->critical(ex.what()); | ||||
|          } | ||||
| 
 | ||||
|          if (initialized) | ||||
|          { | ||||
|             result = a.exec(); | ||||
|          } | ||||
|       } | ||||
|    } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat