Changeset View
Changeset View
Standalone View
Standalone View
kcms/autostart/autostart.cpp
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Line(s) | 216 | if ( indexPath > 2 ) | |||
---|---|---|---|---|---|
217 | indexPath = 0; //.kde/share/autostart and .config/autostart load desktop at startup | 217 | indexPath = 0; //.kde/share/autostart and .config/autostart load desktop at startup | ||
218 | addItem(item, config.readName(), m_pathName.value(indexPath), grp.readEntry("Exec"), disabled ); | 218 | addItem(item, config.readName(), m_pathName.value(indexPath), grp.readEntry("Exec"), disabled ); | ||
219 | } | 219 | } | ||
220 | } | 220 | } | ||
221 | } | 221 | } | ||
222 | 222 | | |||
223 | //add scripts | 223 | //add scripts | ||
224 | 224 | | |||
225 | foreach (const QString& path, m_paths) { | 225 | for (const QString& path : qAsConst(m_paths)) { | ||
226 | QDir d(path); | 226 | QDir d(path); | ||
227 | if (!d.exists()) | 227 | if (!d.exists()) | ||
228 | d.mkpath(path); | 228 | d.mkpath(path); | ||
229 | 229 | | |||
230 | QDir autostartdir( path ); | 230 | QDir autostartdir( path ); | ||
231 | autostartdir.setFilter( QDir::Files ); | 231 | autostartdir.setFilter( QDir::Files ); | ||
232 | const QFileInfoList list = autostartdir.entryInfoList(); | 232 | const QFileInfoList list = autostartdir.entryInfoList(); | ||
233 | 233 | | |||
▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines |