mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Don't enable the widgets before finishing the thread
The maintab should be disabled when the geolocation thread is running - but if you changed the dive, it would reenabled it. (actually this should be only on the location widget, I'll send another path later) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									2b99ae5781
								
							
						
					
					
						commit
						96850b9931
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -15,6 +15,7 @@ | ||||||
| #include "display.h" | #include "display.h" | ||||||
| #include "profile/profilewidget2.h" | #include "profile/profilewidget2.h" | ||||||
| #include "diveplanner.h" | #include "diveplanner.h" | ||||||
|  | #include "divesitehelpers.h" | ||||||
| 
 | 
 | ||||||
| #if defined(FBSUPPORT) | #if defined(FBSUPPORT) | ||||||
| #include "socialnetworks.h" | #include "socialnetworks.h" | ||||||
|  | @ -406,7 +407,7 @@ void MainTab::updateDiveInfo(bool clear) | ||||||
| 	// don't execute this while adding / planning a dive
 | 	// don't execute this while adding / planning a dive
 | ||||||
| 	if (editMode == ADD || editMode == MANUALLY_ADDED_DIVE || MainWindow::instance()->graphics()->isPlanner()) | 	if (editMode == ADD || editMode == MANUALLY_ADDED_DIVE || MainWindow::instance()->graphics()->isPlanner()) | ||||||
| 		return; | 		return; | ||||||
| 	if (!isEnabled() && !clear) | 	if (!isEnabled() && !clear && !ReverseGeoLoockupThread::instance()->isRunning()) | ||||||
| 		setEnabled(true); | 		setEnabled(true); | ||||||
| 	if (isEnabled() && clear) | 	if (isEnabled() && clear) | ||||||
| 		setEnabled(false); | 		setEnabled(false); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue