f-spot r4598 - in trunk: . src src/UI.Dialog
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4598 - in trunk: . src src/UI.Dialog
- Date: Tue, 18 Nov 2008 20:07:43 +0000 (UTC)
Author: sdelcroix
Date: Tue Nov 18 20:07:43 2008
New Revision: 4598
URL: http://svn.gnome.org/viewvc/f-spot?rev=4598&view=rev
Log:
2008-11-18 Stephane Delcroix <sdelcroix novell com>
* src/UI.Dialog/PreferenceDialog.cs: handle the case where the
screensaver_tag from gconf no longer exists. Fix bgo #560265.
Modified:
trunk/ChangeLog
trunk/src/TagStore.cs
trunk/src/UI.Dialog/PreferenceDialog.cs
Modified: trunk/src/TagStore.cs
==============================================================================
--- trunk/src/TagStore.cs (original)
+++ trunk/src/TagStore.cs Tue Nov 18 20:07:43 2008
@@ -91,7 +91,6 @@
foreach (Tag t in this.item_cache.Values)
if (t.Id == id)
return t;
-
return null;
}
Modified: trunk/src/UI.Dialog/PreferenceDialog.cs
==============================================================================
--- trunk/src/UI.Dialog/PreferenceDialog.cs (original)
+++ trunk/src/UI.Dialog/PreferenceDialog.cs Tue Nov 18 20:07:43 2008
@@ -328,12 +328,12 @@
break;
case Preferences.SCREENSAVER_TAG:
screensaver_tag = Preferences.Get<int> (key);
- if (screensaver_tag == 0) {
+ Tag t = MainWindow.Toplevel.Database.Tags.GetTagById (screensaver_tag);
+ if (screensaver_tag == 0 || t == null) {
screensaverall_radio.Active = true;
tag_button.Sensitive = false;
} else {
screensavertagged_radio.Active = true;
- Tag t = MainWindow.Toplevel.Database.Tags.GetTagById (screensaver_tag);
tag_button.Label = t.Name;
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]