diff --git a/weboob/applications/qhavesex/contacts.py b/weboob/applications/qhavesex/contacts.py index 402c338f..4a221287 100644 --- a/weboob/applications/qhavesex/contacts.py +++ b/weboob/applications/qhavesex/contacts.py @@ -299,7 +299,6 @@ class ContactProfile(QWidget): if self.displayed_photo_idx >= len(self.contact.photos): self.displayed_photo_idx = len(self.contact.photos) - 1 if self.displayed_photo_idx < 0: - self.ui.photoLabel.setPixmap(None) self.ui.photoUrlLabel.setText('') return @@ -315,8 +314,6 @@ class ContactProfile(QWidget): if photo.thumbnail_data: data = photo.thumbnail_data else: - self.ui.photoLabel.setPixmap(None) - self.ui.photoLabel.setText('Loading...') return img = QImage.fromData(data) @@ -325,7 +322,7 @@ class ContactProfile(QWidget): self.ui.photoLabel.setPixmap(QPixmap.fromImage(img)) if photo.url is not NotLoaded: text = '%s' % (photo.url, photo.url) - if not photo.shown: + if photo.hidden: text += '
(Hidden photo)' self.ui.photoUrlLabel.setText(text) diff --git a/weboob/applications/qhavesex/ui/profile.ui b/weboob/applications/qhavesex/ui/profile.ui index a8ab7b2f..a9ed5a74 100644 --- a/weboob/applications/qhavesex/ui/profile.ui +++ b/weboob/applications/qhavesex/ui/profile.ui @@ -46,13 +46,10 @@ 0 - - QFrame::StyledPanel - - - QFrame::Raised - + + 0 +