From 14c82a6d827bbf9a8652c6882ff72d2bd00877fd Mon Sep 17 00:00:00 2001 From: luk1337 Date: Mon, 13 Nov 2023 21:59:18 +0100 Subject: [PATCH] Don't pass empty model to QCompleter (#647) It's empty by default. --- syncplay/ui/GuiConfiguration.py | 2 +- syncplay/ui/gui.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/syncplay/ui/GuiConfiguration.py b/syncplay/ui/GuiConfiguration.py index 2e7648d..85f020a 100755 --- a/syncplay/ui/GuiConfiguration.py +++ b/syncplay/ui/GuiConfiguration.py @@ -660,7 +660,7 @@ class ConfigDialog(QtWidgets.QDialog): self.serverpassLabel = QLabel(getMessage("password-label"), self) self.roomsCombobox = QtWidgets.QComboBox(self) self.roomsCombobox.setEditable(True) - caseSensitiveCompleter = QtWidgets.QCompleter("", self) + caseSensitiveCompleter = QtWidgets.QCompleter(self) caseSensitiveCompleter.setCaseSensitivity(Qt.CaseSensitive) self.roomsCombobox.setCompleter(caseSensitiveCompleter) self.fillRoomsCombobox() diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index f6d41e3..ad86dbf 100755 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -1514,7 +1514,7 @@ class MainWindow(QtWidgets.QMainWindow): window.listLayout.addWidget(window.listSplit) window.roomsCombobox = QtWidgets.QComboBox(self) window.roomsCombobox.setEditable(True) - caseSensitiveCompleter = QtWidgets.QCompleter("", self) + caseSensitiveCompleter = QtWidgets.QCompleter(self) caseSensitiveCompleter.setCaseSensitivity(Qt.CaseSensitive) window.roomsCombobox.setCompleter(caseSensitiveCompleter) #window.roomsCombobox.setMaxLength(constants.MAX_ROOM_NAME_LENGTH)