From ddaa1413a6b4194adea11a4af0ccd482f530789f Mon Sep 17 00:00:00 2001 From: Nimda Date: Thu, 25 Jul 2013 22:10:22 -0400 Subject: [PATCH] Remove selecting of next message. It doesn't seem to be necessary, and it would always fail if there was only one message in the inbox. --- src/bitmessageqt/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 08c65eab..03484384 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -2277,7 +2277,10 @@ class MyForm(QtGui.QMainWindow): shared.sqlLock.acquire() shared.sqlSubmitQueue.put('commit') shared.sqlLock.release() - self.ui.tableWidgetInbox.selectRow(currentRow + 1) # Hmm... + # self.ui.tableWidgetInbox.selectRow(currentRow + 1) + # This doesn't de-select the last message if you try to mark it unread, but that doesn't interfere. Might not be necessary. + # We could also select upwards, but then our problem would be with the topmost message. + # Is there a way to deselect all rows? The Qt documentation does not indicate so. def on_action_InboxReply(self): currentInboxRow = self.ui.tableWidgetInbox.currentRow()