diff options
-rw-r--r-- | src/xsession.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xsession.cpp b/src/xsession.cpp index d2c0ad8..d72aecf 100644 --- a/src/xsession.cpp +++ b/src/xsession.cpp @@ -9,10 +9,10 @@ #include "sessionsiconholder.h" struct DisplayConfig { - QChar type; + QString nameChange; QRegularExpression regex; int priority; - QString nameChange; + QChar type; }; static QList< DisplayConfig > priorityList; @@ -241,7 +241,7 @@ void XSession::loadXSessionsConfig() { } int priority = line.mid(second + 1, priorityLength).toInt(); - QRegularExpression::PatternOptions opts = 0; + QRegularExpression::PatternOptions opts = QRegularExpression::NoPatternOption; if (flags.contains("i")) opts |= QRegularExpression::CaseInsensitiveOption; QRegularExpression re(regex, opts); |