From 1823575af481747feb5f9c715b8fb7c2ac0d2987 Mon Sep 17 00:00:00 2001 From: glubsy Date: Wed, 29 Jul 2020 04:26:40 +0200 Subject: [PATCH] Fix swapping table view columns We now have only two columns to swap, not 3. --- qt/pe/image_viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/pe/image_viewer.py b/qt/pe/image_viewer.py index bf71a068..d5b948f8 100644 --- a/qt/pe/image_viewer.py +++ b/qt/pe/image_viewer.py @@ -397,7 +397,7 @@ class BaseController(QObject): @pyqtSlot() def swapImages(self): # swap the columns in the details table as well - self.parent.tableView.horizontalHeader().swapSections(1, 2) + self.parent.tableView.horizontalHeader().swapSections(0, 1) class QWidgetController(BaseController):