Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/workingsetcontroller.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | |||||
54 | 54 | | |||
55 | void WorkingSetController::initialize() | 55 | void WorkingSetController::initialize() | ||
56 | { | 56 | { | ||
57 | //Load all working-sets | 57 | //Load all working-sets | ||
58 | KConfigGroup setConfig(Core::self()->activeSession()->config(), "Working File Sets"); | 58 | KConfigGroup setConfig(Core::self()->activeSession()->config(), "Working File Sets"); | ||
59 | foreach(const QString& set, setConfig.groupList()) { | 59 | foreach(const QString& set, setConfig.groupList()) { | ||
60 | // do not load working set if the id contains an '|', because it then belongs to an area. | 60 | // do not load working set if the id contains an '|', because it then belongs to an area. | ||
61 | // this is functionally equivalent to the if ( ! config->icon ) stuff which was there before. | 61 | // this is functionally equivalent to the if ( ! config->icon ) stuff which was there before. | ||
62 | if ( set.contains('|') ) { | 62 | if (set.contains(QLatin1Char('|'))) { | ||
63 | continue; | 63 | continue; | ||
64 | } | 64 | } | ||
65 | getWorkingSet(set); | 65 | getWorkingSet(set); | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | m_emptyWorkingSet = new WorkingSet(QStringLiteral("empty")); | 68 | m_emptyWorkingSet = new WorkingSet(QStringLiteral("empty")); | ||
69 | 69 | | |||
70 | if(!(Core::self()->setupFlags() & Core::NoUi)) { | 70 | if(!(Core::self()->setupFlags() & Core::NoUi)) { | ||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |