<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>88232</bug_id>
          
          <creation_ts>2004-08-27 16:26:39 +0000</creation_ts>
          <short_desc>Quanta doesn&apos;t see which files have been modified since last upload</short_desc>
          <delta_ts>2004-11-15 12:29:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>quanta</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Thibaut Cousin">kde</reporter>
          <assigned_to name="András Manţia">amantia</assigned_to>
          <cc>dev+kde</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>263296</commentid>
    <comment_count>0</comment_count>
    <who name="Thibaut Cousin">kde</who>
    <bug_when>2004-08-27 16:26:39 +0000</bug_when>
    <thetext>Version:           3.3.0 (using KDE 3.3.0, SuSE)
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.8-5cvs20040825220529-default

A new problem appeared with Quanta 3.3.0.

Now the upload dialog never indicates that any file has been modified. It always appears with all files unchecked, so I have to manually check all the files I want to upload.

It&apos;s a project I was already using in previous versions of Quanta, not a new one created with 3.3.0.

Thanks for your attention!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>263303</commentid>
    <comment_count>1</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2004-08-27 16:39:45 +0000</bug_when>
    <thetext>Are you sure that the upload status for the files is not set to Never?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>263308</commentid>
    <comment_count>2</comment_count>
    <who name="Thibaut Cousin">kde</who>
    <bug_when>2004-08-27 16:56:47 +0000</bug_when>
    <thetext>Yes, you&apos;re right. I had never noticed that option...

It&apos;s a bit tricky: everything was working with Quanta 3.2, and when I upgrade to 3.3 suddenly all the files in my project are marked as not uploadable. I don&apos;t think it&apos;s a very good default status.

But thanks for the hint, it&apos;s easy enough to solve. Could you consider changing the default value of that status?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268142</commentid>
    <comment_count>3</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2004-09-13 12:18:28 +0000</bug_when>
    <thetext>CVS commit by amantia: 

When opening a Quanta 3.2 project set the upload status of the files to &quot;When Modified&quot; not to &quot;Never&quot; [#88232].
When adding files to a project, use the upload status of the parent directory for the newly added file.

CCMAIL: 88232-done@bugs.kde.org
CCMAIL: quanta-devel@kde.org


  M +6 -2      ChangeLog   1.297
  M +6 -1      project/project.cpp   1.207
  M +1 -4      project/projectlist.cpp   1.5


--- kdewebdev/quanta/ChangeLog  #1.296:1.297
@@ -10,6 +10,10 @@
         - possible crash on startup fixed
         - don&apos;t try to autofill a closing tag for non-xml tags [#89212]
-
-
+        - when opening a Quanta 3.2 project set the upload status of the files to
+          &quot;When Modified&quot; not to &quot;Never&quot; [#88232]
+        - when adding files to a project, use the upload status of the parent directory
+           for the newly added file
+        - fix the Save As.. behavior (it defaulted to some strange directories, depending
+          on the active treeview, selected directory, etc.)
 
 Version 3.3.0 (Release date: 18-08-2004; Started 07-05-2004):

--- kdewebdev/quanta/project/project.cpp  #1.206:1.207
@@ -1527,5 +1527,10 @@ void Project::insertFile(const KURL&amp; nam
       el.setAttribute(&quot;url&quot;, QuantaCommon::qUrl( QExtFileInfo::toRelative(url, d-&gt;baseURL) ));
       d-&gt;dom.firstChild().firstChild().appendChild( el );
-      d-&gt;m_projectFiles.insert( new ProjectURL(url, &quot;&quot;, 1, false, el) );
+      KURL u = url.upURL();
+      ProjectURL *parentURL = d-&gt;m_projectFiles.find(u);
+      int uploadStatus = 1;
+      if (parentURL)
+        uploadStatus = parentURL-&gt;uploadStatus;
+      d-&gt;m_projectFiles.insert( new ProjectURL(url, &quot;&quot;, uploadStatus, false, el) );
     }
     url.setPath(url.directory(false));

--- kdewebdev/quanta/project/projectlist.cpp  #1.4:1.5
@@ -80,11 +80,8 @@ bool ProjectList::readFromXML(QDomDocume
       } else
       {
-        int defaultUploadStatus = 0;
         bool docFolder = (el.attribute(&quot;documentFolder&quot;, &quot;false&quot;) == &quot;true&quot;);
-        if (docFolder || url.url().startsWith(templateURL.url()) )
-          defaultUploadStatus = 1;
         int uploadStatus = el.attribute(&quot;uploadstatus&quot;, &quot;-1&quot;).toInt();
         if (uploadStatus == -1)
-          el.setAttribute(&quot;uploadstatus&quot;, defaultUploadStatus);
+          el.setAttribute(&quot;uploadstatus&quot;, 1);
         //remove non-existent local files
         if ( url.isLocalFile() )


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285916</commentid>
    <comment_count>4</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2004-11-15 12:29:07 +0000</bug_when>
    <thetext>*** Bug 92243 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>