forked from qt-creator/qt-creator
		
	Debugger: Refactor run control termination.
Fix breakage introduced by the new asynchronous stop() methods of the debugger run controls. Allow for RunControl::stop() to be asynchronous by introducing a return enumeration indicating that. Introduce additional method aboutToStop() asking user to quit (tie that to the RunControl instead of having to hack the behaviour elsewhere). If asynchronous stop is detected, terminate the ProjectExplorer asynchronously. This makes the behaviour consistent across switching sessions/ closing outputwindow tabs and quitting Qt Creator. Reviewed-by: dt Rubber-stamped-by: hjk
This commit is contained in:
		@@ -93,7 +93,8 @@ public:
 | 
			
		||||
 | 
			
		||||
    // ProjectExplorer::RunControl
 | 
			
		||||
    virtual void start();
 | 
			
		||||
    virtual void stop();
 | 
			
		||||
    virtual bool aboutToStop() const;
 | 
			
		||||
    virtual StopResult stop();
 | 
			
		||||
    virtual bool isRunning() const;
 | 
			
		||||
    QString displayName() const;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user