load tabs only when they are shown for the first time

This commit is contained in:
Romain Bignon 2010-07-03 20:41:05 +02:00
commit 11893f4bb0
3 changed files with 14 additions and 1 deletions

View file

@ -68,6 +68,7 @@ class ContactsWidget(QWidget):
self.connect(self.ui.groupBox, SIGNAL('currentIndexChanged(int)'), self.groupChanged)
self.connect(self.ui.contactList, SIGNAL('currentItemChanged(QListWidgetItem*, QListWidgetItem*)'), self.contactChanged)
def load(self):
self.ui.groupBox.setCurrentIndex(1)
def groupChanged(self, i):