[pdfmod] Avoid prompt when explicitly opening > 1 file



commit 85c1746881c84b95c08d5a302a44683d443a36b2
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Fri Sep 18 12:21:41 2009 -0700

    Avoid prompt when explicitly opening > 1 file

 src/PdfMod/Gui/Actions.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/PdfMod/Gui/Actions.cs b/src/PdfMod/Gui/Actions.cs
index 43eee7d..3aa542d 100644
--- a/src/PdfMod/Gui/Actions.cs
+++ b/src/PdfMod/Gui/Actions.cs
@@ -219,11 +219,15 @@ namespace PdfMod.Gui
             }
 
             var response = chooser.Run ();
-            IList<string> filenames = chooser.Filenames;
+            var filenames = chooser.Filenames;
             chooser.Destroy ();
 
             if (response == (int)ResponseType.Ok) {
-                Client.RunIdle (delegate { app.LoadFiles (filenames); });
+                Client.RunIdle (delegate {
+                    foreach (var file in filenames) {
+                        app.LoadPath (file);
+                    }
+                });
             }
         }
 



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