[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    QUANTA_3_1_BRANCH: quanta
From:       Andras Mantia <amantia () freemail ! hu>
Date:       2003-05-16 17:43:48
[Download RAW message or body]

CVS commit by amantia: 

Quote the number in tag attributes. (backport)


  M +2 -1      ChangeLog   1.90.2.73
  M +1 -7      quanta/tagdialogs/tagdialog.cpp   1.33.2.3


--- quanta/ChangeLog  #1.90.2.72:1.90.2.73
@@ -5,4 +5,5 @@
     - fix possible crashes when using plugins
     - use the project base directory as the working directory for script actions [  \
#36415] +    - quote also the numbers in the attribute values     
      
   - usability enhancements:

--- quanta/quanta/tagdialogs/tagdialog.cpp  #1.33.2.2:1.33.2.3
@@ -223,13 +223,7 @@ QString TagDialog::getAttributeString()
     QString val   = *it.current();
 
-    bool trans;
-    val.toInt( &trans );
-
     QString attrval = " ";  // attr=value
 
     if ( !val.isEmpty() ) {
-      if ( trans )
-        attrval += QuantaCommon::attrCase(attr)+"="+val;
-      else
         attrval += QuantaCommon::attrCase(attr) + "=" + qConfig.attrValueQuotation + \
val + qConfig.attrValueQuotation;  } else


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic