Commit 2551b3c7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt5.15. SkipEmptyParts is part of Qt::.

parent 62fd0410
......@@ -456,7 +456,11 @@ int main(int argc, char *argv[])
QString dontagain; // QString()
if (parser.isSet(QStringLiteral("dontagain"))) {
QString value = parser.value(QStringLiteral("dontagain"));
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const QStringList values = value.split(QLatin1Char(':'), QString::SkipEmptyParts);
#else
const QStringList values = value.split(QLatin1Char(':'), Qt::SkipEmptyParts);
#endif
if (values.count() == 2) {
dontagaincfg.reset(new KConfig(values[0]));
KMessageBox::setDontShowAgainConfig(dontagaincfg.get());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment