forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user