We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7659dbe + 624bb7a commit cf72f13Copy full SHA for cf72f13
src/WSClient.cpp
@@ -815,11 +815,25 @@ void WSClient::importCSVFile(const QList<QStringList> &fileData)
815
continue;
816
}
817
818
- QJsonObject o;
819
- o["service"] = ll[0];
820
- o["login"] = ll[1];
821
- o["password"] = ll[2];
822
- creds.append(o);
+ QStringList serviceList;
+ if (ll[0].contains(','))
+ {
+ // Add support for multiple services in one CSV line
+ serviceList = ll[0].split(',');
823
+ }
824
+ else
825
826
+ serviceList = QStringList{ll[0]};
827
828
+
829
+ for (auto& service : serviceList)
830
831
+ QJsonObject o;
832
+ o["service"] = service;
833
+ o["login"] = ll[1];
834
+ o["password"] = ll[2];
835
+ creds.append(o);
836
837
838
839
sendJsonData({{ "msg", "import_csv" },
0 commit comments