|
Subject: playground/utils/kdbus/src Newsgroups: gmane.comp.kde.cvs Date: 2008-01-11 13:35:32 GMT (1 year, 25 weeks, 1 day, 1 hour and 56 minutes ago)
SVN commit 759913 by dkukawka:
fixed kdbus to work correctly with bool as parameter for
methode calls: use 'QVariant(true/false, 0)' instead of
plain true/false which get added as int32 instead of bool.
M +2 -2 dbusdispatcher.cpp
--- trunk/playground/utils/kdbus/src/dbusdispatcher.cpp #759912:759913
@@ -88,9 +88,9 @@
params.append( text );
else if ( type == "BOOLEAN" ) {
if ( text.lower() == "true" )
- params.append( true );
+ params.append( QVariant(true, 0) );
else if ( text.lower() == "false" )
- params.append( false );
+ params.append( QVariant(false, 0) );
else
ok = false;
}
|
|
|