[gnome-music/wip/merge: 80/343] Update SONGS_COUNT name



commit 26cbd801659bf39cb84746f51dfa4d2dc1ced8cc
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Jul 15 00:26:27 2013 +0200

    Update SONGS_COUNT name

 gnomemusic/window.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index d2e5af3..7b538a4 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -4,7 +4,7 @@ from gettext import gettext as _
 from gnomemusic.toolbar import Toolbar
 from gnomemusic.player import Player, SelectionToolbar
 import gnomemusic.view as Views
-import gnomemusic.query as Query
+from gnomemusic.query import Query
 
 tracker = Tracker.SparqlConnection.get(None)
 
@@ -70,7 +70,7 @@ class Window(Gtk.ApplicationWindow):
         self._box.pack_start(self.selectionToolbar.eventbox, False, False, 0)
         self.add(self._box)
         count = 1
-        cursor = tracker.query(Query.songs_count, None)
+        cursor = tracker.query(Query.SONGS_COUNT, None)
         if cursor is not None and cursor.next(None):
             count = cursor.get_integer(0)
         if count > 0:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]