From b9f759849b0e8de23d29a3c93d88217fc2ab9d8f Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 1 Oct 2010 09:30:04 +0200 Subject: [PATCH] fix inserting 'more' button --- weboob/applications/qhavesex/contacts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/applications/qhavesex/contacts.py b/weboob/applications/qhavesex/contacts.py index c2d16c8e..b5a5c81f 100644 --- a/weboob/applications/qhavesex/contacts.py +++ b/weboob/applications/qhavesex/contacts.py @@ -136,7 +136,7 @@ class ContactThread(QWidget): button = QPushButton(self.tr('More messages...')) self.connect(button, SIGNAL('clicked()'), lambda: self._load_button_pressed(button)) if pos >= 0: - self.ui.scrollAreaContent.layout().insertWidget(i, button) + self.ui.scrollAreaContent.layout().insertWidget(pos, button) else: self.ui.scrollAreaContent.layout().addWidget(button)