From 143859f1b5351035a0f72b498e16dc310d3ad41d Mon Sep 17 00:00:00 2001 From: Leonardo Robol Date: Sat, 20 Jun 2009 15:46:33 +0200 Subject: [PATCH] BUG corretto: Il pulsante salva canzone non faceva nulla --- songbook-editor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/songbook-editor.py b/songbook-editor.py index c5bde4e..da865ec 100755 --- a/songbook-editor.py +++ b/songbook-editor.py @@ -102,9 +102,10 @@ class interface(QtGui.QMainWindow): # Check if we have already saved this song or if it's a new entry for song in self.song_db: if(song.title == song_to_save.title): - song = song_to_save + # Questa linea di codice e' orribile, ma non capisco come dovrei fare per salvare la canzone + self.song_db[self.song_db.index(song)] = song_to_save need_new_song = False - break + break if(need_new_song): self.add_song_to_db(song_to_save) -- 2.1.4