summaryrefslogtreecommitdiffstats
path: root/tools/designer/shared/domtool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/shared/domtool.cpp')
-rw-r--r--tools/designer/shared/domtool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/designer/shared/domtool.cpp b/tools/designer/shared/domtool.cpp
index 51796e1..2b75dc7 100644
--- a/tools/designer/shared/domtool.cpp
+++ b/tools/designer/shared/domtool.cpp
@@ -199,7 +199,7 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
v = QVariant( e.firstChild().toText().data().toDouble() );
} else if ( e.tagName() == "bool" ) {
QString t = e.firstChild().toText().data();
- v = QVariant( t == "true" || t == "1", 0 );
+ v = QVariant( t == "true" || t == "1" );
} else if ( e.tagName() == "pixmap" ) {
v = QVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "iconset" ) {