aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-12-02 09:30:48 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-02 10:13:40 +0100
commite01219b77b1e889e70437635905d7ff820568e23 (patch)
tree64e3423429788192b1f5f9506ca22656eb09778c /tools
parent542a7d164ad81973f911a54bc53aa385d09b5c1f (diff)
qmlplugindump: Fix missing flush for objects that don't fit a line.
The missing flush could result in script bindings appearing after the closing brace of an object. Change-Id: If05764619668cc4a86f7364f6cd7feeb0d6f6e32 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlplugindump/qmlstreamwriter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/qmlplugindump/qmlstreamwriter.cpp b/tools/qmlplugindump/qmlstreamwriter.cpp
index a5c110ee3f..50be165ba0 100644
--- a/tools/qmlplugindump/qmlstreamwriter.cpp
+++ b/tools/qmlplugindump/qmlstreamwriter.cpp
@@ -93,8 +93,7 @@ void QmlStreamWriter::writeEndObject()
m_pendingLineLength = 0;
m_maybeOneline = false;
} else {
- if (m_maybeOneline)
- flushPotentialLinesWithNewlines();
+ flushPotentialLinesWithNewlines();
--m_indentDepth;
writeIndent();
m_stream->write("}\n");