[f-spot] FolderExport: avoid throwing exception if URI_KEY is missing
- From: Lorenzo Milesi <lmilesi src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] FolderExport: avoid throwing exception if URI_KEY is missing
- Date: Wed, 22 Jul 2009 08:04:12 +0000 (UTC)
commit 9a98729c34b0538662addca5ed1fb4fb389f4b12
Author: Markus Lindqvist <markus lindqvist iki fi>
Date: Wed Jul 22 10:02:12 2009 +0200
FolderExport: avoid throwing exception if URI_KEY is missing
extensions/Exporters/FolderExport/FolderExport.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/Exporters/FolderExport/FolderExport.cs b/extensions/Exporters/FolderExport/FolderExport.cs
index c629904..4bdc338 100644
--- a/extensions/Exporters/FolderExport/FolderExport.cs
+++ b/extensions/Exporters/FolderExport/FolderExport.cs
@@ -142,7 +142,7 @@ namespace FSpotFolderExport {
uri_chooser.LocalOnly = false;
- if (Preferences.Get<string> (URI_KEY) != String.Empty)
+ if (!String.IsNullOrEmpty (Preferences.Get<string> (URI_KEY)))
uri_chooser.SetUri (Preferences.Get<string> (URI_KEY));
else
uri_chooser.SetFilename (uri_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]