From db1a3854fb1a7160e29fbb700b75f5d87728499c Mon Sep 17 00:00:00 2001 From: Leonardo Robol Date: Thu, 7 May 2009 16:34:47 +0200 Subject: [PATCH] All functions use now add_song_to_db method --- songbook-editor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/songbook-editor.py b/songbook-editor.py index ab43de0..099d419 100755 --- a/songbook-editor.py +++ b/songbook-editor.py @@ -120,9 +120,11 @@ class interface(QtGui.QMainWindow): self.song_db = [] for raw_song in song_list: if(raw_song != ""): - self.song_db.append(self.file_to_song(raw_song)) + self.add_song_to_db(self.file_to_song(raw_song)) # Update the list view - self.list_update() + # self.list_update() This is not necessary anymore, because of + # the add_song_to_db function managing the widget update :) + # Less fast, but more readable! def list_update(self): self.ui.list_songs.clear() -- 2.1.4