Fix QString::SkipEmptyParts for real this time (#3747)
Follow-up to #3726
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#include "singletons/Settings.hpp"
|
#include "singletons/Settings.hpp"
|
||||||
#include "singletons/WindowManager.hpp"
|
#include "singletons/WindowManager.hpp"
|
||||||
#include "util/Helpers.hpp"
|
#include "util/Helpers.hpp"
|
||||||
|
#include "util/Qt.hpp"
|
||||||
#include "util/StreamerMode.hpp"
|
#include "util/StreamerMode.hpp"
|
||||||
|
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
@@ -41,8 +42,7 @@ namespace {
|
|||||||
if (iterator == tags.end())
|
if (iterator == tags.end())
|
||||||
return QStringList{};
|
return QStringList{};
|
||||||
|
|
||||||
return iterator.value().toString().split(
|
return iterator.value().toString().split(',', Qt::SkipEmptyParts);
|
||||||
',', QString::SplitBehavior::SkipEmptyParts);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<Badge> parseBadges(const QVariantMap &tags)
|
std::vector<Badge> parseBadges(const QVariantMap &tags)
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
#include "singletons/WindowManager.hpp"
|
#include "singletons/WindowManager.hpp"
|
||||||
#include "util/Helpers.hpp"
|
#include "util/Helpers.hpp"
|
||||||
#include "util/IrcHelpers.hpp"
|
#include "util/IrcHelpers.hpp"
|
||||||
|
#include "util/Qt.hpp"
|
||||||
#include "widgets/Window.hpp"
|
#include "widgets/Window.hpp"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
@@ -54,8 +55,7 @@ namespace {
|
|||||||
if (iterator == tags.end())
|
if (iterator == tags.end())
|
||||||
return QStringList{};
|
return QStringList{};
|
||||||
|
|
||||||
return iterator.value().toString().split(
|
return iterator.value().toString().split(',', Qt::SkipEmptyParts);
|
||||||
',', QString::SplitBehavior::SkipEmptyParts);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::map<QString, QString> parseBadgeInfos(const QVariantMap &tags)
|
std::map<QString, QString> parseBadgeInfos(const QVariantMap &tags)
|
||||||
|
|||||||
Reference in New Issue
Block a user