[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdeconnect-kde/contacts] plugins/contacts: Break vcard into variable before writing for debugging
From: Simon Redman <null () kde ! org>
Date: 2018-03-31 20:44:19
Message-ID: E1f2NMJ-0000a0-4j () code ! kde ! org
[Download RAW message or body]
Git commit 49499ebe68741bebdda4c71842f50ad55a18081a by Simon Redman.
Committed on 31/03/2018 at 20:44.
Pushed by sredman into branch 'contacts'.
Break vcard into variable before writing for debugging
M +2 -1 plugins/contacts/contactsplugin.cpp
https://commits.kde.org/kdeconnect-kde/49499ebe68741bebdda4c71842f50ad55a18081a
diff --git a/plugins/contacts/contactsplugin.cpp b/plugins/contacts/contactsplugin.cpp
index 41123c5f..8306d724 100644
--- a/plugins/contacts/contactsplugin.cpp
+++ b/plugins/contacts/contactsplugin.cpp
@@ -179,7 +179,8 @@ bool ContactsPlugin::handleResponseVCards (const NetworkPacket& np) {
}
QTextStream fileWriteStream(&vcardFile);
- fileWriteStream << np.get<QString>(ID);
+ const QString& vcard = np.get<QString>(ID);
+ fileWriteStream << vcard;
}
qCDebug(KDECONNECT_PLUGIN_CONTACTS) << "handleResponseVCards:" << "Got" << uIDs.size() << "VCards";
Q_EMIT localCacheSynchronized(uIDs);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic