forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.9'
Conflicts: src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp Change-Id: I170de608eaae795133105dedb76ae6f93f6e0d92
This commit is contained in:
@@ -272,8 +272,6 @@ void EditorToolBar::addEditor(IEditor *editor)
|
||||
|
||||
if (toolBar && !d->m_isStandalone)
|
||||
addCenterToolBar(toolBar);
|
||||
|
||||
updateDocumentStatus(editor->document());
|
||||
}
|
||||
|
||||
void EditorToolBar::addCenterToolBar(QWidget *toolBar)
|
||||
@@ -408,10 +406,6 @@ void EditorToolBar::updateDocumentStatus(IDocument *document)
|
||||
return;
|
||||
}
|
||||
|
||||
const Utils::optional<int> index = DocumentModel::rowOfDocument(document);
|
||||
if (QTC_GUARD(index))
|
||||
d->m_editorList->setCurrentIndex(*index);
|
||||
|
||||
if (document->filePath().isEmpty()) {
|
||||
d->m_lockButton->setIcon(QIcon());
|
||||
d->m_lockButton->setEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user