Skip to content

Commit

Permalink
Fix deprecation warnings, comparing int and float values
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalo-bulnes committed Jun 7, 2022
1 parent 0c33802 commit 80d5a54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3051,7 +3051,7 @@ def __init__(self, source: Source, controller: Controller) -> None:
self.replybox = QWidget()
self.replybox.setObjectName("ReplyBoxWidget_replybox")
replybox_layout = QHBoxLayout(self.replybox)
replybox_layout.setContentsMargins(32.6, 19, 27.3, 18)
replybox_layout.setContentsMargins(32, 19, 28, 18)
replybox_layout.setSpacing(0)

# Create reply text box
Expand All @@ -3064,7 +3064,7 @@ def __init__(self, source: Source, controller: Controller) -> None:
send_button_icon = QIcon(load_image("send.svg"))
send_button_icon.addPixmap(load_image("send-disabled.svg"), QIcon.Disabled)
self.send_button.setIcon(send_button_icon)
self.send_button.setIconSize(QSize(56.5, 47))
self.send_button.setIconSize(QSize(56, 47))
self.send_button.setShortcut(QKeySequence("Ctrl+Return"))
self.send_button.setDefault(True)

Expand Down

0 comments on commit 80d5a54

Please sign in to comment.