[pdfmod] Fix drag and drop of a file from Nautilus



commit 2805e788ffd534e4eb76b2dc2995e017bc2f9894
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Thu Oct 8 22:32:31 2009 +0200

    Fix drag and drop of a file from Nautilus

 src/PdfMod/Gui/Client.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/PdfMod/Gui/Client.cs b/src/PdfMod/Gui/Client.cs
index 651f057..f80b2b1 100644
--- a/src/PdfMod/Gui/Client.cs
+++ b/src/PdfMod/Gui/Client.cs
@@ -249,8 +249,10 @@ namespace PdfMod.Gui
                 loading = true;
             }
             
-            path = System.IO.Path.GetFullPath (path);
-
+            if (!path.StartsWith ("file://")) {
+                path = System.IO.Path.GetFullPath (path);
+            }
+            
             Configuration.LastOpenFolder = System.IO.Path.GetDirectoryName (suggestedFilename ?? path);
             status_label.Text = Catalog.GetString ("Loading document...");
 



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