Commit c5d6c139 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Design mode: Suppress warning about top level spacers.

parent 845948cd
......@@ -37,6 +37,7 @@
#include "formwindoweditor.h"
#include "formeditorw.h"
#include "designerconstants.h"
#include "qt_private/formwindowbase_p.h"
#include <QtCore/QStringList>
......@@ -130,12 +131,12 @@ void FormEditorStack::formChanged()
TextEditor::BaseTextDocument *doc = qobject_cast<TextEditor::BaseTextDocument*>(activeEditor->xmlEditor->file());
Q_ASSERT(doc);
if (doc) {
doc->document()->setPlainText(activeEditor->formEditor->contents());
// Save quietly (without spacer's warning).
if (const qdesigner_internal::FormWindowBase *fwb = qobject_cast<const qdesigner_internal::FormWindowBase *>(activeEditor->formEditor))
doc->document()->setPlainText(fwb->fileContents());
}
}
}
} // Internal
} // Designer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment