mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fixed First run of subsurface - Start on Fullscreen.
For a new installation, subsurface will now start on fullscreen, this fixes the bug where subsurface would start using the interface file ( mainwindow.ui ) configured size, and that silly monster always changes when editing something. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
		
							parent
							
								
									7bd43bfaaf
								
							
						
					
					
						commit
						a5b351ed72
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -16,6 +16,7 @@ | |||
| #include <QFontMetrics> | ||||
| #include <QWebView> | ||||
| #include <QTableView> | ||||
| #include <QDesktopWidget> | ||||
| #include "divelistview.h" | ||||
| #include "starwidget.h" | ||||
| 
 | ||||
|  | @ -503,7 +504,7 @@ void MainWindow::initialUiSetup() | |||
| 	int i; | ||||
| 
 | ||||
| 	settings.beginGroup("MainWindow"); | ||||
| 	QSize sz = settings.value("size").value<QSize>(); | ||||
| 	QSize sz = settings.value("size", qApp->desktop()->size()).value<QSize>(); | ||||
| 	resize(sz); | ||||
| 	ui.mainSplitter->restoreState(settings.value("mainSplitter").toByteArray()); | ||||
| 	ui.infoProfileSplitter->restoreState(settings.value("infoProfileSplitter").toByteArray()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue