diff options
author | NoisyCoil <noisycoil@tutanota.com> | 2022-10-23 14:09:56 +0200 |
---|---|---|
committer | NoisyCoil <noisycoil@tutanota.com> | 2022-10-23 14:09:56 +0200 |
commit | fadba5506a0b82cf331a106bcccff6478a3fd32d (patch) | |
tree | 299e7bfec7ecc0d8403f1719142b9a159b060767 /desktop/onionshare/tab/tab.py | |
parent | e129f739342843468fc3d14a6503ff0acb8ca436 (diff) | |
download | onionshare-fadba5506a0b82cf331a106bcccff6478a3fd32d.tar.gz onionshare-fadba5506a0b82cf331a106bcccff6478a3fd32d.zip |
Upgraded desktop/{onionshare,tests} to PySide6
Diffstat (limited to 'desktop/onionshare/tab/tab.py')
-rw-r--r-- | desktop/onionshare/tab/tab.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/onionshare/tab/tab.py b/desktop/onionshare/tab/tab.py index 5e2d4af8..50cc0965 100644 --- a/desktop/onionshare/tab/tab.py +++ b/desktop/onionshare/tab/tab.py @@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. """ import queue -from PySide2 import QtCore, QtWidgets, QtGui +from PySide6 import QtCore, QtWidgets, QtGui from onionshare_cli.onionshare import OnionShare from onionshare_cli.web import Web @@ -45,7 +45,7 @@ class NewTabButton(QtWidgets.QPushButton): self.setFixedSize(280, 280) # Keyboard shortcut, using the first letter of the mode - sequence = QtGui.QKeySequence(QtCore.Qt.CTRL + shortcut) + sequence = QtGui.QKeySequence(QtCore.Qt.CTRL | shortcut) self.setShortcut(sequence) self.setAccessibleName(title) @@ -666,7 +666,7 @@ class Tab(QtWidgets.QWidget): # Open the warning dialog self.common.log("Tab", "close_tab, opening warning dialog") self.close_dialog.setText(dialog_text) - self.close_dialog.exec_() + self.close_dialog.exec() # Close if self.close_dialog.clickedButton() == self.close_dialog.accept_button: |