[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdemultimedia/kioslave/audiocd
From:       Richard Lärkäng <richard () goteborg ! utfors ! se>
Date:       2007-08-12 13:30:17
Message-ID: 1186925417.297180.8483.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 699259 by larkang:

Initialize discid, and don't crash if cddb lookup failed


 M  +6 -2      audiocd.cpp  


--- trunk/KDE/kdemultimedia/kioslave/audiocd/audiocd.cpp #699258:699259
@@ -103,6 +103,7 @@
 		clearURLargs();
 		s_info = i18n("Information");
 		s_fullCD = i18n("Full CD");
+		discid = 0;
 	}
 
 	void clearURLargs() {
@@ -257,8 +258,11 @@
 
 		KCDDB::Client c;
 		d->cddbResult = c.lookup(d->cd.discSignature());
-		d->cddbList = c.lookupResponse();
-		d->cddbBestChoice = d->cddbList.first();
+		if (d->cddbResult == Success)
+		{
+			d->cddbList = c.lookupResponse();
+			d->cddbBestChoice = d->cddbList.first();
+		}
 		generateTemplateTitles();
 	}
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic