From 07b17ab2e99ecd5ecee0a63a1db67579c4531a45 Mon Sep 17 00:00:00 2001 From: Olivier Keshavjee Date: Sun, 31 May 2015 22:44:56 +0200 Subject: [PATCH] Adds userID and other stuff --- src/mainWindow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mainWindow.py b/src/mainWindow.py index 467e10e1..b1175662 100644 --- a/src/mainWindow.py +++ b/src/mainWindow.py @@ -181,7 +181,10 @@ class MainWindow(QMainWindow, Ui_MainWindow): def changeCurrentPerso(self, trash=None): for i in range(self.mdlPersosInfos.columnCount()): - self.tblPersoInfos.setColumnHidden(i, i<>0 and i<>self.lstPersos.currentIndex().row()+1) + idx = self.lstPersos.currentIndex() + pid = idx.sibling(idx.row(), 1) + pid2 = self.mdlPersosInfos.item(i, 0) + self.tblPersoInfos.setColumnHidden(i, i<>0 and pid <> pid2) #self.tblPersoInfos.horizontalHeader().resizeSections(QHeaderView.Stretch) self.resizePersosInfos()