[Openvas-commits] r9205 - in trunk/gsd: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Oct 12 14:41:16 CEST 2010


Author: raimund
Date: 2010-10-12 14:41:16 +0200 (Tue, 12 Oct 2010)
New Revision: 9205

Modified:
   trunk/gsd/ChangeLog
   trunk/gsd/src/dock_details.cpp
   trunk/gsd/src/dock_details.h
Log:
* src/dock_details.cpp (update): Get the task id to be able to modify a note
correctly.
(exec_modify_note): Set task id to modification parameter instead of task
name.



Modified: trunk/gsd/ChangeLog
===================================================================
--- trunk/gsd/ChangeLog	2010-10-12 11:16:55 UTC (rev 9204)
+++ trunk/gsd/ChangeLog	2010-10-12 12:41:16 UTC (rev 9205)
@@ -1,5 +1,12 @@
 2010-10-12  Raimund Renkert <raimund.renkert at greenbone.net>
 
+	* src/dock_details.cpp (update): Get the task id to be able to modify a note
+	correctly.
+	(exec_modify_note): Set task id to modification parameter instead of task
+	name.
+
+2010-10-12  Raimund Renkert <raimund.renkert at greenbone.net>
+
 	* src/gsd_control.cpp (gsd_control): Added model for config download.
 	(start): Signal/slot configuration for conig download.
 	(config_download): Added request for config export.

Modified: trunk/gsd/src/dock_details.cpp
===================================================================
--- trunk/gsd/src/dock_details.cpp	2010-10-12 11:16:55 UTC (rev 9204)
+++ trunk/gsd/src/dock_details.cpp	2010-10-12 12:41:16 UTC (rev 9205)
@@ -1568,6 +1568,7 @@
       i++;
     }
 
+  this->task_id = note->getAttr (elem, "note task id");
   this->la_name_v->setText (note->getValue(elem, "nvt name"));
   this->la_oid_v->setText (note->getAttr (elem, "note nvt oid"));
   this->la_created_v->setText (note->getValue (elem, "creation_time"));
@@ -1666,6 +1667,8 @@
   parameter.insert ("hosts", hosts);
   parameter.insert ("port", port);
   parameter.insert ("threat", threat);
+  if (task.compare ("") != 0)
+    task = task_id;
   parameter.insert ("task", task);
   parameter.insert ("result", result);
 

Modified: trunk/gsd/src/dock_details.h
===================================================================
--- trunk/gsd/src/dock_details.h	2010-10-12 11:16:55 UTC (rev 9204)
+++ trunk/gsd/src/dock_details.h	2010-10-12 12:41:16 UTC (rev 9205)
@@ -340,6 +340,7 @@
 
   private:
     model_omp_entity *note;
+    QString task_id;
   public slots:
     void update (QString id);
     void modify_note ();



More information about the Openvas-commits mailing list