summaryrefslogtreecommitdiffstats
path: root/src/qdbus
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-10-18 21:11:23 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-19 23:48:45 +0200
commitdef4dcb48030dc9495c4ee5182a86982b88f51d2 (patch)
treed23fa7d497dd6c2ee7e895c45737c6e188a8e2e4 /src/qdbus
parente2050f9101b4a4edce49e8189cf4959b665234be (diff)
qdbus: Don't print a newline on void replies
Only print something if there was actually something coming from the peer. Task-number: QTBUG-22482 Change-Id: I4536871484664ed3056cc20de7e49a176cf5a8b9 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src/qdbus')
-rw-r--r--src/qdbus/qdbus/qdbus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdbus/qdbus/qdbus.cpp b/src/qdbus/qdbus/qdbus.cpp
index 4c1d6152b..0ce6563cb 100644
--- a/src/qdbus/qdbus/qdbus.cpp
+++ b/src/qdbus/qdbus/qdbus.cpp
@@ -107,7 +107,7 @@ static void printArg(const QVariant &v)
else
printf("qdbus: I don't know how to display an argument of type '%s', run with --literal.\n",
qPrintable(arg.currentSignature()));
- } else {
+ } else if (v.userType() != QVariant::Invalid) {
printf("%s\n", qPrintable(v.toString()));
}
}