forked from qt-creator/qt-creator
DiffEditor: remove description when the diff is saved.
The description itself isn't saved so no need to keep it anymore. Change-Id: I8e521ce261261eb91a1f218f4e65092fc3fb44e8 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -85,8 +85,9 @@ bool DiffEditorDocument::save(QString *errorString, const QString &fileName, boo
|
||||
if (!ok)
|
||||
return false;
|
||||
|
||||
if (m_controller->reloader())
|
||||
m_controller->setReloader(0);
|
||||
m_controller->setReloader(0);
|
||||
m_controller->setDescription(QString());
|
||||
m_controller->setDescriptionEnabled(false);
|
||||
|
||||
DiffEditorManager::removeDocument(this);
|
||||
const QFileInfo fi(fileName);
|
||||
|
||||
Reference in New Issue
Block a user