forked from qt-creator/qt-creator
QmlDesigner: Update resources file system model on model attach
Removed the update from old places. ViewManager::attachItemLibraryView one was never called and the other DesignDocument::updateFileName one gets called incorrectly on any file rename, not just the currently open one. Change-Id: I822ced6fe32dd9625d605e33046c808eb2272028 Fixes: QDS-2721 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -207,8 +207,6 @@ void DesignDocument::updateFileName(const Utils::FilePath & /*oldFileName*/, con
|
||||
if (m_inFileComponentModel)
|
||||
m_inFileComponentModel->setFileUrl(QUrl::fromLocalFile(newFileName.toString()));
|
||||
|
||||
viewManager().setItemLibraryViewResourcePath(newFileName.toFileInfo().absolutePath());
|
||||
|
||||
emit displayNameChanged(displayName());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user