forked from qt-creator/qt-creator
QmlDesigner: Change run target when shortcut used
When a user uses a shortcut to run the application in either normal mode or live preview and the target selected in the run button, change it accordingly to the last ran target. Change-Id: Id398dde35121570e267cabdc81019d899a0e6b2f Reviewed-by: Burak Hancerli <burak.hancerli@qt.io> Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
a5d1945750
commit
cc21b50c11
@@ -175,6 +175,9 @@ RunManager::RunManager(DeviceShare::DeviceManager &deviceManager)
|
||||
[this](ProjectExplorer::RunControl *runControl) {
|
||||
qCDebug(runManagerLog) << "Run Control started.";
|
||||
|
||||
if (m_currentTargetId != runControl->runMode())
|
||||
selectRunTarget(runControl->runMode());
|
||||
|
||||
m_runningTargets.append(QPointer(runControl));
|
||||
|
||||
setState(TargetState::Running);
|
||||
|
Reference in New Issue
Block a user