summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/sussen/files/sussen-0.23-try-catch-on-results.patch')
-rw-r--r--net-analyzer/sussen/files/sussen-0.23-try-catch-on-results.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-analyzer/sussen/files/sussen-0.23-try-catch-on-results.patch b/net-analyzer/sussen/files/sussen-0.23-try-catch-on-results.patch
new file mode 100644
index 000000000000..17f9ba31f97e
--- /dev/null
+++ b/net-analyzer/sussen/files/sussen-0.23-try-catch-on-results.patch
@@ -0,0 +1,18 @@
+diff -Naur sussen-0.23.orig/applet/ActionDialog.cs sussen-0.23/applet/ActionDialog.cs
+--- sussen-0.23.orig/applet/ActionDialog.cs 2006-06-05 17:03:35.000000000 +0400
++++ sussen-0.23/applet/ActionDialog.cs 2006-06-14 18:20:26.000000000 +0400
+@@ -203,8 +203,12 @@
+
+ if (scanResultsFilename != null) {
+ UriBuilder ub = new UriBuilder (scanResultsFilename);
+- Gnome.Url.Show (ub.ToString());
+-// new SummaryDialog (scanResultsFilename);
++
++ try {
++ Gnome.Url.Show (ub.ToString());
++ } catch (Exception e) {
++ ShowErrorDialog ("Error displaying results", e.Message);
++ }
+ } else
+ Console.WriteLine ("scanResultsFilename is null");
+