[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-05 10:26:39
[Download RAW message or body]

CVS commit by amantia: 

Fix the selection of modified files in the upload dialog. Should be more accurate \
now. (backport)


  M +4 -0      ChangeLog   1.90.2.67
  M +6 -12     quanta/project/projectupload.cpp   1.28.2.5


--- quanta/ChangeLog  #1.90.2.66:1.90.2.67
@@ -1,4 +1,8 @@
 This file contains the changes for Quanta since version 2.0 until the 3.1 series.
 
+Version 3.1.3 (Release date: xx-xx-2003)
+    - fix the selection of modified files in the upload dialog. Should be more 
+      accurate now.       
+
 Version 3.1.2 (Release date: 12-05-2003)
   - bugfixes:

--- quanta/quanta/project/projectupload.cpp  #1.28.2.4:1.28.2.5
@@ -150,4 +150,5 @@ void ProjectUpload::slotBuildTree()
        int uploadTime = el.attribute("upload_time","1").toInt();
        int modifiedTime = item.time(KIO::UDS_MODIFICATION_TIME);
+       el.setAttribute("modified_time", modifiedTime);
 
        if ( uploadTime < modifiedTime )
@@ -400,10 +401,5 @@ void ProjectUpload::slotUploadNext()
                 if ( el.nodeName() == "item"  &&  el.attribute("url") == \
QuantaCommon::qUrl(currentURL) )  {
-                        QDateTime stime;
-                        stime.setTime_t(1);
-                        el.setAttribute( "upload_time", \
                stime.secsTo(QDateTime::currentDateTime() ) );
-/*        time_t stime;
-        time(&stime);
-                        el.setAttribute( "upload_time", (int)stime);*/
+                el.setAttribute( "upload_time", el.attribute("modified_time") );
         break;
                 }
@@ -419,7 +415,5 @@ void ProjectUpload::clearProjectModified
   {
     QDomElement el = nl.item(i).toElement();
-    QDateTime stime;
-    stime.setTime_t(1);
-    el.setAttribute( "upload_time", stime.secsTo( QDateTime::currentDateTime() ) );
+    el.setAttribute( "upload_time", el.attribute("modified_time") );
   }
   modified.clear();


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

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