[rkward-cvs] SF.net SVN: rkward-code:[4838] trunk/rkward/rkward/plugin/rkoptionset.cpp

tfry at users.sf.net tfry at users.sf.net
Fri Sep 19 19:15:08 UTC 2014


Revision: 4838
          http://sourceforge.net/p/rkward/code/4838
Author:   tfry
Date:     2014-09-19 19:15:08 +0000 (Fri, 19 Sep 2014)
Log Message:
-----------
For manual optionsets that require at least one row, add an initial row, automatically.

Modified Paths:
--------------
    trunk/rkward/rkward/plugin/rkoptionset.cpp

Modified: trunk/rkward/rkward/plugin/rkoptionset.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkoptionset.cpp	2014-09-19 15:42:57 UTC (rev 4837)
+++ trunk/rkward/rkward/plugin/rkoptionset.cpp	2014-09-19 19:15:08 UTC (rev 4838)
@@ -2,7 +2,7 @@
                           rkoptionset  -  description
                              -------------------
     begin                : Mon Oct 31 2011
-    copyright            : (C) 2011, 2012 by Thomas Friedrichsmeier
+    copyright            : (C) 2011, 2012, 2014 by Thomas Friedrichsmeier
     email                : tfry at users.sourceforge.net
  ***************************************************************************/
 
@@ -192,6 +192,7 @@
 	RK_TRACE (PLUGIN);
 	RK_ASSERT (default_row_state.isEmpty ());
 	contents_container->fetchPropertyValuesRecursive (&default_row_state, false, QString (), true);
+	if (min_rows && !keycolumn) addRow ();
 	contents_container->enablednessProperty ()->setBoolValue (rowCount () > 0);	// no current row; Do this *after* fetching default values, however. Otherwise most values will *not* be read, as the element is disabled
 }
 





More information about the rkward-tracker mailing list