From b4519bdffb7610fb88eda314ebfa95133b9fc642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Tue, 2 Dec 2014 02:05:58 +0100 Subject: [PATCH] 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. --- .../plasmacomponents/qml/SelectionDialog.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/SelectionDialog.qml b/src/declarativeimports/plasmacomponents/qml/SelectionDialog.qml index baa0e0c37..96916135f 100644 --- a/src/declarativeimports/plasmacomponents/qml/SelectionDialog.qml +++ b/src/declarativeimports/plasmacomponents/qml/SelectionDialog.qml @@ -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 } }