diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-10-18 21:11:23 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-19 23:48:45 +0200 |
commit | def4dcb48030dc9495c4ee5182a86982b88f51d2 (patch) | |
tree | d23fa7d497dd6c2ee7e895c45737c6e188a8e2e4 /src | |
parent | e2050f9101b4a4edce49e8189cf4959b665234be (diff) | |
download | qttools-def4dcb48030dc9495c4ee5182a86982b88f51d2.tar.gz |
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')
-rw-r--r-- | src/qdbus/qdbus/qdbus.cpp | 2 |
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())); } } |