forked from qt-creator/qt-creator
		
	QmlProfiler: Disable run controls after they are finished
Disabled runControls would still receive and send signals, confusing the profiler state. Also, connect lambdas with receiver argument where possible. Change-Id: I0cd43456d3462efe402e9d68792b67314e9b6e0b Task-number: QTCREATORBUG-16073 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
		@@ -101,7 +101,7 @@ QmlProfilerRunControl::QmlProfilerRunControl(RunConfiguration *runConfiguration,
 | 
			
		||||
 | 
			
		||||
QmlProfilerRunControl::~QmlProfilerRunControl()
 | 
			
		||||
{
 | 
			
		||||
    if (d->m_profilerState)
 | 
			
		||||
    if (d->m_running && d->m_profilerState)
 | 
			
		||||
        stop();
 | 
			
		||||
    delete d;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user