Commit 0bae7294 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Tim Jenssen

QmlDesigner: Fix crumble bar for component navigation

We have to push the complete path not just the file name.
This patch does not apply do master. A similar patch is
applied to master manually.

Change-Id: I1a2f459f792c9343a9422f74781a0bc23d1995aa
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent e231073a
......@@ -224,7 +224,7 @@ void QmlDesignerPlugin::showDesigner()
if (data->documentManager.hasCurrentDesignDocument()) {
activateAutoSynchronization();
data->shortCutManager.updateActions(currentDesignDocument()->textEditor());
data->viewManager.pushFileOnCrumbleBar(data->documentManager.currentDesignDocument()->fileName().fileName());
data->viewManager.pushFileOnCrumbleBar(data->documentManager.currentDesignDocument()->fileName().toString());
}
data->shortCutManager.updateUndoActions(currentDesignDocument());
......@@ -267,7 +267,7 @@ void QmlDesignerPlugin::changeEditor()
if (data->documentManager.hasCurrentDesignDocument()) {
activateAutoSynchronization();
data->viewManager.pushFileOnCrumbleBar(data->documentManager.currentDesignDocument()->fileName().fileName());
data->viewManager.pushFileOnCrumbleBar(data->documentManager.currentDesignDocument()->fileName().toString());
data->viewManager.setComponentViewToMaster();
}
......
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