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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 25 17:00:48 CEST 2010


Author: raimund
Date: 2010-10-25 17:00:47 +0200 (Mon, 25 Oct 2010)
New Revision: 9268

Modified:
   trunk/gsd/ChangeLog
   trunk/gsd/src/gsd_dialogs.cpp
   trunk/gsd/src/omp_string_builder.cpp
Log:
* src/gsd_dialogs.cpp (dlg_new_schedule::create): Add correct attributes to
parameter list.

* src/omp_string_builder.cpp (appendCreateParameter): Set correct parameter
while creating the command.



Modified: trunk/gsd/ChangeLog
===================================================================
--- trunk/gsd/ChangeLog	2010-10-25 14:00:42 UTC (rev 9267)
+++ trunk/gsd/ChangeLog	2010-10-25 15:00:47 UTC (rev 9268)
@@ -1,5 +1,13 @@
 2010-10-25  Raimund Renkert <raimund.renkert at greenbone.net>
 
+	* src/gsd_dialogs.cpp (dlg_new_schedule::create): Add correct attributes to
+	parameter list.
+
+	* src/omp_string_builder.cpp (appendCreateParameter): Set correct parameter
+	while creating the command.
+
+2010-10-25  Raimund Renkert <raimund.renkert at greenbone.net>
+
 	Load system reports on startup.
 
 	* src/gsd_control.cpp (loadData): Request system reports on startup.

Modified: trunk/gsd/src/gsd_dialogs.cpp
===================================================================
--- trunk/gsd/src/gsd_dialogs.cpp	2010-10-25 14:00:42 UTC (rev 9267)
+++ trunk/gsd/src/gsd_dialogs.cpp	2010-10-25 15:00:47 UTC (rev 9268)
@@ -564,7 +564,8 @@
   parameter.insert ("year", QString ("%1").arg (first_year));
   parameter.insert ("duration", QString ("%1").arg (dura));
   parameter.insert ("duration unit", dura_unit);
-  parameter.insert ("period", QString ("%1").arg (period_unit));
+  parameter.insert ("period", QString ("%1").arg (period));
+  parameter.insert ("period unit", period_unit);
 
   emit sig_create (omp_utilities::SCHEDULE, parameter);
   this->close ();

Modified: trunk/gsd/src/omp_string_builder.cpp
===================================================================
--- trunk/gsd/src/omp_string_builder.cpp	2010-10-25 14:00:42 UTC (rev 9267)
+++ trunk/gsd/src/omp_string_builder.cpp	2010-10-25 15:00:47 UTC (rev 9268)
@@ -497,17 +497,17 @@
                          "<year>%7</year>"
                          "</first_time>"
                          "<duration>%8%9</duration>"
-                         "<period>%8%9</period>").arg (parameter["name"])
-                                                 .arg (comment)
-                                                 .arg (parameter ["first_min"])
-                                                 .arg (parameter ["first_hour"])
-                                                 .arg (parameter ["first_day"])
-                                                 .arg (parameter ["first_month"])
-                                                 .arg (parameter ["first_year"])
-                                                 .arg (parameter ["duration"])
-                                                 .arg (d_unit)
-                                                 .arg (parameter ["period"])
-                                                 .arg (p_unit);
+                         "<period>%10%11</period>").arg (parameter["name"])
+                                                   .arg (comment)
+                                                   .arg (parameter ["first_min"])
+                                                   .arg (parameter ["first_hour"])
+                                                   .arg (parameter ["first_day"])
+                                                   .arg (parameter ["first_month"])
+                                                   .arg (parameter ["first_year"])
+                                                   .arg (parameter ["duration"])
+                                                   .arg (d_unit)
+                                                   .arg (parameter ["period"])
+                                                   .arg (p_unit);
           return com;
         }
     }



More information about the Openvas-commits mailing list