forked from qt-creator/qt-creator
QmlDesigner: Fix crumble bar for component navigation
We have to push the complete path not just the file name. Change-Id: I1a2f459f792c9343a9422f74781a0bc23d19956a Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -275,7 +275,7 @@ void QmlDesignerPlugin::showDesigner()
|
||||
if (d->documentManager.hasCurrentDesignDocument()) {
|
||||
activateAutoSynchronization();
|
||||
d->shortCutManager.updateActions(currentDesignDocument()->textEditor());
|
||||
d->viewManager.pushFileOnCrumbleBar(d->documentManager.currentDesignDocument()->fileName().fileName());
|
||||
d->viewManager.pushFileOnCrumbleBar(d->documentManager.currentDesignDocument()->fileName().toString());
|
||||
}
|
||||
|
||||
d->shortCutManager.updateUndoActions(currentDesignDocument());
|
||||
@@ -312,7 +312,7 @@ void QmlDesignerPlugin::changeEditor()
|
||||
|
||||
if (d->documentManager.hasCurrentDesignDocument()) {
|
||||
activateAutoSynchronization();
|
||||
d->viewManager.pushFileOnCrumbleBar(d->documentManager.currentDesignDocument()->fileName().fileName());
|
||||
d->viewManager.pushFileOnCrumbleBar(d->documentManager.currentDesignDocument()->fileName().toString());
|
||||
d->viewManager.setComponentViewToMaster();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user