Changeset View
Changeset View
Standalone View
Standalone View
kcms/notifications/package/contents/ui/SourcesPage.qml
Show All 26 Lines | |||||
27 | 27 | | |||
28 | import org.kde.private.kcms.notifications 1.0 as Private | 28 | import org.kde.private.kcms.notifications 1.0 as Private | ||
29 | 29 | | |||
30 | Kirigami.Page { | 30 | Kirigami.Page { | ||
31 | id: sourcesPage | 31 | id: sourcesPage | ||
32 | title: i18n("Application Settings") | 32 | title: i18n("Application Settings") | ||
33 | 33 | | |||
34 | Component.onCompleted: { | 34 | Component.onCompleted: { | ||
35 | kcm.sourcesModel.load(); | | |||
36 | | ||||
37 | var idx = kcm.sourcesModel.persistentIndexForDesktopEntry(kcm.initialDesktopEntry); | 35 | var idx = kcm.sourcesModel.persistentIndexForDesktopEntry(kcm.initialDesktopEntry); | ||
38 | if (!idx.valid) { | 36 | if (!idx.valid) { | ||
39 | idx = kcm.sourcesModel.persistentIndexForNotifyRcName(kcm.initialNotifyRcName); | 37 | idx = kcm.sourcesModel.persistentIndexForNotifyRcName(kcm.initialNotifyRcName); | ||
40 | } | 38 | } | ||
41 | appConfiguration.rootIndex = idx; | 39 | appConfiguration.rootIndex = idx; | ||
42 | 40 | | |||
43 | // In Component.onCompleted we might not be assigned a window yet | 41 | // In Component.onCompleted we might not be assigned a window yet | ||
44 | // which we need to make the events config dialog transient to it | 42 | // which we need to make the events config dialog transient to it | ||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |