[banshee] FileChooserDialog: Fix error message on first launch (bgo#637303)



commit 98363ba2786bc1827f7bc86b79e56d18e06ef584
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sat Dec 18 17:21:55 2010 +0100

    FileChooserDialog: Fix error message on first launch (bgo#637303)
    
    Make sure that the fallback value for the last file chooser URI is a
    proper URI.

 .../Banshee.Gui.Dialogs/FileChooserDialog.cs       |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/FileChooserDialog.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/FileChooserDialog.cs
index 2e6a09e..c904bf2 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/FileChooserDialog.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/FileChooserDialog.cs
@@ -71,7 +71,8 @@ namespace Banshee.Gui.Dialogs
             base (title, parent, action)
         {
             LocalOnly = Banshee.IO.Provider.LocalOnly;
-            SetCurrentFolderUri (LastFileChooserUri.Get (Environment.GetFolderPath (Environment.SpecialFolder.Personal)));
+            string fallback = SafeUri.FilenameToUri (Environment.GetFolderPath (Environment.SpecialFolder.Personal));
+            SetCurrentFolderUri (LastFileChooserUri.Get (fallback));
             WindowPosition = WindowPosition.Center;
         }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]