[gnome-music: 3/4] increase offset in _add_item if and only if the check on the if item condition passed
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music: 3/4] increase offset in _add_item if and only if the check on the if item condition passed
- Date: Sun, 4 Aug 2013 12:14:04 +0000 (UTC)
commit 0a25a213ec820771fcf2a3a226cf091a57d83b36
Author: Seif Lotfy <seif lotfy com>
Date: Sun Aug 4 11:10:38 2013 +0200
increase offset in _add_item if and only if the check on the if item
condition passed
gnomemusic/view.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 4fe4f5b..6750b12 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -491,9 +491,9 @@ class Artists (ViewContainer):
self._artistAlbumsWidget.add(self.artistAlbums)
def _add_item(self, source, param, item):
- self._offset += 1
if item is None:
return
+ self._offset += 1
artist = item.get_string(Grl.METADATA_KEY_ARTIST)
if not artist:
artist = item.get_author()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]