From 04dc61df22b4edb9c7d014efc6420795f2bdb3ae Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Tue, 3 May 2011 12:01:56 -0700 Subject: [PATCH] Mark current options tab --- menus.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/menus.py b/menus.py index 6d7f5bc..b2f86a0 100644 --- a/menus.py +++ b/menus.py @@ -580,6 +580,8 @@ class PesterOptions(QtGui.QDialog): button = QtGui.QPushButton(t) self.tabs.addButton(button) layout_4.addWidget(button) + button.setCheckable(True) + self.tabs.button(-2).setChecked(True) self.pages = QtGui.QStackedWidget(self) self.tabcheck = QtGui.QCheckBox("Tabbed Conversations", self) @@ -732,6 +734,7 @@ class PesterOptions(QtGui.QDialog): @QtCore.pyqtSlot(int) def changePage(self, page): + self.tabs.button(page).setChecked(True) # What is this, I don't even. qt, fuck page = -page - 2 self.pages.setCurrentIndex(page)