[rygel] ui: Catch error when getting URIs from config
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] ui: Catch error when getting URIs from config
- Date: Sat, 20 Jun 2009 19:31:52 -0400 (EDT)
commit 2606799e3282ec0540f508a027959d91d489efd3
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Jun 21 02:17:44 2009 +0300
ui: Catch error when getting URIs from config
src/ui/rygel-media-export-pref-section.vala | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/ui/rygel-media-export-pref-section.vala b/src/ui/rygel-media-export-pref-section.vala
index 7af1b30..264b7fb 100644
--- a/src/ui/rygel-media-export-pref-section.vala
+++ b/src/ui/rygel-media-export-pref-section.vala
@@ -55,13 +55,15 @@ public class Rygel.MediaExportPrefSection : Rygel.PluginPrefSection {
0,
null);
- var uris = config.get_string_list (this.name, URIS_KEY);
- foreach (var uri in uris) {
- TreeIter iter;
+ try {
+ var uris = config.get_string_list (this.name, URIS_KEY);
+ foreach (var uri in uris) {
+ TreeIter iter;
- this.liststore.append (out iter);
- this.liststore.set (iter, 0, uri, -1);
- }
+ this.liststore.append (out iter);
+ this.liststore.set (iter, 0, uri, -1);
+ }
+ } catch (GLib.Error err) {} // Nevermind
var button = (Button) builder.get_object (ADD_BUTTON);
button.clicked += this.on_add_button_clicked;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]