Skip to content

Commit

Permalink
Fix QLineEdit namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Gatsik committed Sep 20, 2024
1 parent 3e4e45d commit 46ec768
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/_clientwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ def show_autojoin_settings_dialog(self):
self,
'Set autojoin channels',
text_of_autojoin_settings_dialog,
QtWidgets.QLineEdit.Normal,
QtWidgets.QLineEdit.EchoMode.Normal,
';'.join(autojoin_channels_list),
)
if ok:
Expand Down
2 changes: 1 addition & 1 deletion src/coop/_coopwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def game_double_clicked(self, game: Game) -> None:
if game.password_protected:
passw, ok = QtWidgets.QInputDialog.getText(
self.client, "Passworded game", "Enter password :",
QtWidgets.QLineEdit.Normal, "",
QtWidgets.QLineEdit.EchoMode.Normal, "",
)
if ok:
self.client.join_game(uid=game.uid, password=passw)
Expand Down
2 changes: 1 addition & 1 deletion src/games/_gameswidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def gameDoubleClicked(self, game):
self.client,
"Passworded game",
"Enter password :",
QtWidgets.QLineEdit.Normal,
QtWidgets.QLineEdit.EchoMode.Normal,
"",
)
if ok:
Expand Down

0 comments on commit 46ec768

Please sign in to comment.