diff options
| author | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-15 17:27:33 +0100 |
|---|---|---|
| committer | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-15 17:27:33 +0100 |
| commit | b660519e1915356214c31bd401b01aa750a961a1 (patch) | |
| tree | 93e7eb1d0b790bbb57fdfd01a63779184a7b46e8 /src/PatchedClonkParser.cpp | |
| parent | db1950e0ea15af6b4674cdadfe9b36ae97a7a85e (diff) | |
| download | manager-b660519e1915356214c31bd401b01aa750a961a1.tar.gz manager-b660519e1915356214c31bd401b01aa750a961a1.zip | |
Use Qt::SplitBehavior instead of deprecated QString::SplitBehavior
Diffstat (limited to 'src/PatchedClonkParser.cpp')
| -rw-r--r-- | src/PatchedClonkParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PatchedClonkParser.cpp b/src/PatchedClonkParser.cpp index e5abd7d..7eea65d 100644 --- a/src/PatchedClonkParser.cpp +++ b/src/PatchedClonkParser.cpp @@ -8,7 +8,7 @@ PatchedClonkParser::PatchedClonkParser(CRSMSession& session) : ClonkParser(sessi namespace { void parseClientInfo(QString& message, QString& pcName, QString& user) { - if(message.length() > 5 && message.at(0) == '\\') + if(!message.isEmpty() && message.at(0) == '\\') { QString parts[2]; for(int i = 1, part = 0; i < message.length() && part < 2; ++i) |
