Image Viewer: Fix renaming not updating displayed names

The window title and the editor combobox still showed the old name

Change-Id: I97a34aacd6f37a70486428cc7c5b1308add9ae62
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
Daniel Teske
2012-03-12 15:55:12 +01:00
parent 1f9a55e0b0
commit e9187909ae

View File

@@ -89,6 +89,8 @@ bool ImageViewerFile::save(QString *errorString, const QString &fileName, bool a
void ImageViewerFile::rename(const QString &newName)
{
d->fileName = newName;
d->editor->setDisplayName(QFileInfo(d->fileName).fileName());
emit changed();
}
QString ImageViewerFile::fileName() const