Commit a28972ff authored by Ivan Čukić's avatar Ivan Čukić 👁

No need to use QSet for activity existence checking

Linear search beats binary on small data sets. Also,
toSet is now deprecated.

BUG:418839
parent 81871760
......@@ -106,9 +106,9 @@ Activities::Private::Private(Activities *parent)
Activities::Running;
const auto runningActivities
= mainConfig().readEntry("runningActivities", QStringList()).toSet();
= mainConfig().readEntry("runningActivities", QStringList());
const auto stoppedActivities
= mainConfig().readEntry("stoppedActivities", QStringList()).toSet();
= mainConfig().readEntry("stoppedActivities", QStringList());
// Do we have a running activity?
bool atLeastOneRunning = false;
......
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