mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	profile: call clearHandlers() in setPlanState()
This function, which removes the handlers from the profile, was called in setAddState() but not in setPlanState(). In the latter case it was called explicitly by the caller. Move the call from the caller into the function. This allows us to make clearHandlers() private in to the profile widget. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									bb76cb56d4
								
							
						
					
					
						commit
						674c20227b
					
				
					 3 changed files with 4 additions and 2 deletions
				
			
		|  | @ -1352,6 +1352,7 @@ void ProfileWidget2::setPlanState() | |||
| 	if (currentState == PLAN) | ||||
| 		return; | ||||
| 
 | ||||
| 	clearHandlers(); | ||||
| 	setProfileState(); | ||||
| 	mouseFollowerHorizontal->setVisible(true); | ||||
| 	mouseFollowerVertical->setVisible(true); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue