diff --git a/plugins/sftp/sftpplugin-win.cpp b/plugins/sftp/sftpplugin-win.cpp index 357f22d44..da9c45ba2 100644 --- a/plugins/sftp/sftpplugin-win.cpp +++ b/plugins/sftp/sftpplugin-win.cpp @@ -38,7 +38,8 @@ bool SftpPlugin::startBrowsing() bool SftpPlugin::receivePacket(const NetworkPacket &np) { - QSet receivedFields(np.body().keys().begin(), np.body().keys().end()); + QStringList receivedFieldsList = np.body().keys(); + QSet receivedFields(receivedFieldsList.begin(), receivedFieldsList.end()); if (!(expectedFields - receivedFields).isEmpty()) { qCWarning(KDECONNECT_PLUGIN_SFTP) << "Invalid packet received."; for (QString missingField : (expectedFields - receivedFields)) {