Skip to content
Snippets Groups Projects
Commit 666c96cf authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Revert "Design mode: Suppress warning about top level spacers."

This reverts commit c5d6c139.
parent 09c337dc
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,6 @@
#include "formwindoweditor.h"
#include "formeditorw.h"
#include "designerconstants.h"
#include "qt_private/formwindowbase_p.h"
#include <QtCore/QStringList>
......@@ -131,12 +130,12 @@ void FormEditorStack::formChanged()
TextEditor::BaseTextDocument *doc = qobject_cast<TextEditor::BaseTextDocument*>(activeEditor->xmlEditor->file());
Q_ASSERT(doc);
if (doc) {
// 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());
doc->document()->setPlainText(activeEditor->formEditor->contents());
}
}
}
} // Internal
} // Designer
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment