OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_dataop.cpp versions 1.43 and 1.44
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_dataop.cpp 1.43 -> 1.44

--- as_dataop.cpp        2003/02/05 13:58:02     1.43
+++ as_dataop.cpp        2003/02/06 14:10:33     1.44
@@ -270,10 +270,10 @@
         Asline.skipWhiteSpace();    // Remove whitespaces
         Remark = Asline.read();     // Copy the remark field
 
-        // Get rid of surrounding double quotes
-        QRegExp Quoted("\"(.*)\"$");
-        Quoted.search(Remark);
-        Remark = Quoted.cap(Quoted.numCaptures());
+        QRegExp Quoted("\"(.*)[^\\]\"");            // Get rid of
+        Quoted.search(Remark);                      // surrounding double
+        Remark = Quoted.cap(Quoted.numCaptures());  // quotes, and
+        Remark.replace("\\(.)", "\1");              // escape backslashes
 
         if (!Remark.isEmpty())
             m_pMaintable->setText(nIter, TITRAQ_IDXREMARK, Remark);

CVSTrac 2.0.1