mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Settings update: Fix broken UpdateManger logic
In commit b76c1846bb ("Settings update: Simplify Update Manager")
the logic for when to show the UpdateManger question to the user got
broken. Unintuitively, a boolean setting actually has three possible
values. True, False, and Unset. This patch fixes things to work as
designed again.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
			
			
This commit is contained in:
		
							parent
							
								
									f745a25cb7
								
							
						
					
					
						commit
						1bf76dd3db
					
				
					 4 changed files with 10 additions and 1 deletions
				
			
		|  | @ -110,7 +110,7 @@ void UpdateManager::requestReceived() | |||
| 	} | ||||
| 	if (isAutomaticCheck) { | ||||
| 		auto update_settings = SettingsObjectWrapper::instance()->update_manager_settings; | ||||
| 		if (!update_settings->dontCheckForUpdates()) { | ||||
| 		if (!update_settings->dontCheckExists()) { | ||||
| 
 | ||||
| 			// we allow an opt out of future checks
 | ||||
| 			QMessageBox response(MainWindow::instance()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue