From 8ad064dcac73f4ec29b3da5573944a04ee4bfdf4 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Mon, 5 Nov 2018 01:33:34 +0100 Subject: [PATCH] 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. --- src/bitmessageqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index e98ab204..1dd4bff7 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -3258,7 +3258,7 @@ class MyForm(settingsmixin.SMainWindow): if not tableWidget: return folder = self.getCurrentFolder() - shifted = (QtGui.QApplication.queryKeyboardModifiers() & QtCore.Qt.ShiftModifier) > 0 + shifted = QtGui.QApplication.queryKeyboardModifiers() & QtCore.Qt.ShiftModifier while tableWidget.selectedIndexes() != []: currentRow = tableWidget.selectedIndexes()[0].row() ackdataToTrash = str(tableWidget.item(