forked from qt-creator/qt-creator
DiffEditor: Do not soft-assert when saving
Do not soft-assert when saving a diff that was saved before. Change-Id: Iebe06f2bf2ab966869181e0237ed6cc69b2f6045 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
This commit is contained in:
@@ -76,10 +76,11 @@ DiffEditorDocument::~DiffEditorDocument()
|
||||
*/
|
||||
void DiffEditorDocument::setController(DiffEditorController *controller)
|
||||
{
|
||||
QTC_ASSERT(isTemporary(), return);
|
||||
if (m_controller == controller)
|
||||
return;
|
||||
|
||||
QTC_ASSERT(isTemporary(), return);
|
||||
|
||||
if (m_controller)
|
||||
m_controller->deleteLater();
|
||||
m_controller = controller;
|
||||
|
||||
Reference in New Issue
Block a user