Skip to content

Commit 8ad064d

Browse files
committed
Fix: Shift handling when deleting from Sent
Due to the way Qt.KeyboardModifiers works, treating it as an integer results in unexpected behaviour. As a result, When deleting from Sent, it always deleted rather than moved an item to trash, when selecting "Move to Trash" from the context menu. This fixes it.
1 parent b84ff9b commit 8ad064d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitmessageqt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3258,7 +3258,7 @@ def on_action_SentTrash(self):
32583258
if not tableWidget:
32593259
return
32603260
folder = self.getCurrentFolder()
3261-
shifted = (QtGui.QApplication.queryKeyboardModifiers() & QtCore.Qt.ShiftModifier) > 0
3261+
shifted = QtGui.QApplication.queryKeyboardModifiers() & QtCore.Qt.ShiftModifier
32623262
while tableWidget.selectedIndexes() != []:
32633263
currentRow = tableWidget.selectedIndexes()[0].row()
32643264
ackdataToTrash = str(tableWidget.item(

0 commit comments

Comments
 (0)