[us-commits] r2781 - trunk/programs/us_convert

svn at svn.aucsolutions.com svn at svn.aucsolutions.com
Fri May 31 11:02:17 MDT 2019


Author: alexey
Date: 2019-05-31 17:02:15 +0000 (Fri, 31 May 2019)
New Revision: 2781

Modified:
   trunk/programs/us_convert/us_convert_gui.cpp
Log:
us_convert: comments for autoflow (no comments for standalone)
	    * bug fixed



Modified: trunk/programs/us_convert/us_convert_gui.cpp
===================================================================
--- trunk/programs/us_convert/us_convert_gui.cpp	2019-05-29 21:19:35 UTC (rev 2780)
+++ trunk/programs/us_convert/us_convert_gui.cpp	2019-05-31 17:02:15 UTC (rev 2781)
@@ -69,7 +69,6 @@
    dbg_level    = US_Settings::us_debug();
 DbgLv(0) << "CGui: dbg_level" << dbg_level;
 
-
    us_convert_auto_mode = true;
  
    QGridLayout* settings = new QGridLayout;
@@ -4870,6 +4869,8 @@
 void US_ConvertGui::saveUS3( void )
 {
 
+  qDebug() << "Save INIT 1: ";
+
   // qDebug() << "ExpData: ";
 
   // qDebug() << "ExpData.invID " << ExpData.invID;             
@@ -4910,8 +4911,14 @@
   
 
   // Comments
-  ExpData.comments = this->te_comment ->toPlainText();
+  if ( us_convert_auto_mode )
+    {
+      qDebug() << "Save: Comments: " << this->te_comment ->toPlainText();
+      ExpData.comments = this->te_comment ->toPlainText();
+    }
   
+  qDebug() << "Save INIT 2:";
+  
   // Test to see if this is multi-speed data
    QVector< int > speeds;
    int notrips  = 0;



More information about the us-commits mailing list