Commit cf26765c authored by Aurindam Jana's avatar Aurindam Jana Committed by Kai Koehne

QmlJSInspectorToolBar: updateDesignModeActions()

Call updateDesignModeActions() after updating design mode flag.

Change-Id: Ibfedb0beb0d58cc3f3a27944ea726fea31015dcc
Reviewed-by: default avatarSimjees Abraham <simjees.abraham@nokia.com>
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent fa6817a6
......@@ -325,8 +325,6 @@ void QmlJsInspectorToolBar::updatePlayAction()
void QmlJsInspectorToolBar::selectToolTriggered(bool checked)
{
updateDesignModeActions(SelectionToolMode);
if (m_designModeActive != checked) {
m_designModeActive = checked;
emit designModeSelected(checked);
......@@ -334,12 +332,11 @@ void QmlJsInspectorToolBar::selectToolTriggered(bool checked)
if (checked)
emit selectToolSelected();
updateDesignModeActions(SelectionToolMode);
}
void QmlJsInspectorToolBar::zoomToolTriggered(bool checked)
{
updateDesignModeActions(ZoomMode);
if (m_designModeActive != checked) {
m_designModeActive = checked;
emit designModeSelected(checked);
......@@ -347,6 +344,8 @@ void QmlJsInspectorToolBar::zoomToolTriggered(bool checked)
if (checked)
emit zoomToolSelected();
updateDesignModeActions(ZoomMode);
}
void QmlJsInspectorToolBar::showAppOnTopClick()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment