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:
Daniel Teske
2011-07-01 19:53:43 +02:00
parent 7ffd2e8b9f
commit b7e72a5cd8

View File

@@ -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;
}