diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2012-01-24 15:08:06 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2012-01-24 17:47:38 +0100 |
commit | f822514bda3957e4892ab4d91985cc19b3baa174 (patch) | |
tree | e8935014adba2d6ad30a414509faaea160677018 /installerbuilder | |
parent | 7fe38ad67787fad0d5c55a127fed6b083dace8dc (diff) |
remove only the last space from default qDebug
Change-Id: I918a9ad70abb89b100fd7917ae0f8ee1f2b9c610
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Diffstat (limited to 'installerbuilder')
-rw-r--r-- | installerbuilder/libinstaller/init.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/installerbuilder/libinstaller/init.cpp b/installerbuilder/libinstaller/init.cpp index e44f2fecc..8f6a05eb6 100644 --- a/installerbuilder/libinstaller/init.cpp +++ b/installerbuilder/libinstaller/init.cpp @@ -158,8 +158,10 @@ static void initResources() static void messageHandler(QtMsgType type, const char *msg) { + QByteArray ba(msg); // last character is a space from qDebug - QByteArray ba = QByteArray(msg).trimmed(); + if (ba.endsWith(' ')) + ba.chop(1); // remove quotes if the whole message is surrounded with them if (ba.startsWith('"') && ba.endsWith('"')) |