forked from qt-creator/qt-creator
GenericProject: Fix update on editing project.files
The passed in filename is empty if the file is saved with it current name. In that case pass the current name to the GenericProjectManager, which then informs the projects. Change-Id: Id11c474930153e904702e7a0145e1f44331241fd Reviewed-on: http://codereview.qt.nokia.com/1077 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -179,6 +179,6 @@ bool ProjectFilesDocument::save(QString *errorString, const QString &name, bool
|
||||
return false;
|
||||
|
||||
if (!autoSave)
|
||||
m_manager->notifyChanged(name);
|
||||
m_manager->notifyChanged(name.isEmpty() ? fileName() : name);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user