Don't pass empty model to QCompleter (#647)

It's empty by default.
This commit is contained in:
luk1337 2023-11-13 21:59:18 +01:00 committed by GitHub
parent 073faf8354
commit 14c82a6d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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)