[pdfmod] Fix issue with remembering last directory
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pdfmod] Fix issue with remembering last directory
- Date: Tue, 30 Mar 2010 20:43:34 +0000 (UTC)
commit 35d6c770abee0c777d8c1fdd8dc2ed76f9f10561
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Mar 30 13:37:18 2010 -0700
Fix issue with remembering last directory
src/PdfMod/Core/Configuration.cs | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/PdfMod/Core/Configuration.cs b/src/PdfMod/Core/Configuration.cs
index 66539a9..b59e3f1 100644
--- a/src/PdfMod/Core/Configuration.cs
+++ b/src/PdfMod/Core/Configuration.cs
@@ -48,7 +48,13 @@ namespace PdfMod.Core
public string LastOpenFolder {
get { return Get<string> ("last_folder", System.Environment.GetFolderPath (System.Environment.SpecialFolder.Desktop)); }
- set { Set<string> ("last_folder", value); }
+ set {
+ if (value != null && value.StartsWith ("file:/") && !value.StartsWith ("file://")) {
+ value = "file://" + value.Substring (6);
+ }
+
+ Set<string> ("last_folder", value);
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]