summary refs log tree commit diff
path: root/resources/qml/QuickSwitcher.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-27 22:35:38 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-27 22:35:38 +0200
commitd955444dc18b2977d8b22e87b92c85bca90a623e (patch)
tree22086804e4d01f85583fc46f72350317ee626849 /resources/qml/QuickSwitcher.qml
parentFix crash on invalid utf8 in decrypted events (diff)
downloadnheko-d955444dc18b2977d8b22e87b92c85bca90a623e.tar.xz
Port to explicit connect syntax
Also fix a lot of warnings.
Diffstat (limited to 'resources/qml/QuickSwitcher.qml')
-rw-r--r--resources/qml/QuickSwitcher.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/qml/QuickSwitcher.qml b/resources/qml/QuickSwitcher.qml
index 8c4f47ca..61155acf 100644
--- a/resources/qml/QuickSwitcher.qml
+++ b/resources/qml/QuickSwitcher.qml
@@ -71,15 +71,17 @@ Popup {
     }
 
     Connections {
-        onCompletionSelected: {
+        function onCompletionSelected(id) {
             Rooms.setCurrentRoom(id);
             quickSwitcher.close();
         }
-        onCountChanged: {
+
+        function onCountChanged() {
             if (completerPopup.count > 0 && (completerPopup.currentIndex < 0 || completerPopup.currentIndex >= completerPopup.count))
                 completerPopup.currentIndex = 0;
 
         }
+
         target: completerPopup
     }