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:
jkobus
2014-11-07 10:30:19 +01:00
committed by Jarek Kobus
parent f6c8fafcfd
commit 1ce60cb31d

View File

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