[chronojump] try/catch on manual open



commit d70656a576b28a15209be7bca554e137f6fab24c
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Apr 17 15:20:51 2014 +0200

    try/catch on manual open

 src/gui/chronojump.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 3346aec..2408f21 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -5622,7 +5622,11 @@ Console.WriteLine("X");
                                Catalog.GetString("Newer versions will be on this site:") +"\n" + 
                                "<i>http://www.chronojump.org/multimedia.html</i>");
                                */
-               System.Diagnostics.Process.Start(Path.GetFullPath(Util.GetManualDir())); 
+               try {
+                       System.Diagnostics.Process.Start(Path.GetFullPath(Util.GetManualDir())); 
+               } catch {
+                       new DialogMessage(Constants.MessageTypes.WARNING, "Sorry, manual folder does not 
exist.");
+               }
        }
 
        private void on_menuitem_formulas_activate (object o, EventArgs args) {


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