[Openvas-commits] r5492 - in trunk/openvas-client: . openvas/prefs_dialog

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 12 12:43:07 CEST 2009


Author: felix
Date: 2009-10-12 12:43:06 +0200 (Mon, 12 Oct 2009)
New Revision: 5492

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/openvas/prefs_dialog/prefs_report.c
Log:
* openvas/prefs_dialog/prefs_report.c (fill_tree_model): Put a string
("Report is empty") in the report list if report is empty.


Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2009-10-12 10:35:29 UTC (rev 5491)
+++ trunk/openvas-client/ChangeLog	2009-10-12 10:43:06 UTC (rev 5492)
@@ -1,3 +1,8 @@
+2009-10-12  Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
+	* openvas/prefs_dialog/prefs_report.c (fill_tree_model): Put a string
+	("Report is empty") in the report list if report is empty.
+
 2009-10-12  Michael Wiegand <michael.wiegand at intevation.de>
 
 	* openvas/openvas-client.c (main): Made command line options more

Modified: trunk/openvas-client/openvas/prefs_dialog/prefs_report.c
===================================================================
--- trunk/openvas-client/openvas/prefs_dialog/prefs_report.c	2009-10-12 10:35:29 UTC (rev 5491)
+++ trunk/openvas-client/openvas/prefs_dialog/prefs_report.c	2009-10-12 10:43:06 UTC (rev 5492)
@@ -326,7 +326,18 @@
       walk = subset_next (walk);
     }
 
-  subset_free(subset);
+  /* Report empty? Dont make it look weird */
+  if (!subset)
+    {
+      gtk_tree_store_append (GTK_TREE_STORE(tree_store), &iter, parent);
+      gtk_tree_store_set    (GTK_TREE_STORE(tree_store), &iter,
+                             COL_NAME, "Report is empty",
+                             COL_KEY, "",
+                             COL_SEVERITY, 0,
+                             -1);
+    }
+
+  subset_free (subset);
 }
 
 



More information about the Openvas-commits mailing list