mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Remove unnecessary check for MainWindow instance
The error-callback is installed in the MainWindow constructor. Therefore, in the error-callback the existence of the MainWindow instance is guaranteed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									a25f54e3c2
								
							
						
					
					
						commit
						df81a39aa5
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -91,9 +91,7 @@ MainWindow *MainWindow::m_Instance = NULL; | |||
| 
 | ||||
| extern "C" void showErrorFromC() | ||||
| { | ||||
| 	MainWindow *mainwindow = MainWindow::instance(); | ||||
| 	if (mainwindow) | ||||
| 		emit mainwindow->showError(get_error_string()); | ||||
| 	emit MainWindow::instance()->showError(get_error_string()); | ||||
| } | ||||
| 
 | ||||
| MainWindow::MainWindow() : QMainWindow(), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue