Fix DialogStatus namespace in SelectionDialog

DialogStatus, as in other Dialog variants, can only be accessed through
the PlasmaComponents namespace.

Fixes 3 ReferenceErrors in SelectionDialog and makes it actually work.
This commit is contained in:
Sebastian Kügler 2014-12-02 02:05:58 +01:00
parent cf3898f7a9
commit b4519bdffb

View File

@ -168,18 +168,18 @@ PlasmaComponents.CommonDialog {
}
onStatusChanged: {
//FIXME: why needs focus deactivation then activation?
if (status == DialogStatus.Open) {
if (status == PlasmaComponents.DialogStatus.Open) {
filterField.focus = false
focusTimer.running = true
}
if (status == DialogStatus.Opening) {
if (status == PlasmaComponents.DialogStatus.Opening) {
if (listView.currentItem != null) {
listView.currentItem.focus = false
}
listView.currentIndex = -1
listView.positionViewAtIndex(0, ListView.Beginning)
} else if (status == DialogStatus.Open) {
} else if (status == PlasmaComponents.DialogStatus.Open) {
listView.focus = true
}
}