Bug 60821 - Quanta projectfile should store relative pathnames
Summary: Quanta projectfile should store relative pathnames
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-05 22:15 UTC by Dik Takken
Modified: 2003-07-13 12:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dik Takken 2003-07-05 22:15:40 UTC
Version:            (using KDE KDE 3.1.1)
Installed from:    Unspecified Linux
OS:          Linux

When I move a directory containing a Quanta project to a different location, Quanta says it cannot find the project documents anymore. It displays the old, full pathname where the document used to be. Storing document locations relative to the postition of the project description file should solve this.
Comment 1 András Manţia 2003-07-06 21:15:19 UTC
Subject: Re:  New: Quanta projectfile should store relative pathnames

Are you using Quanta 3.1.x? It should really store relative pathnames. But I 
will double check that it works or not.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/CHQYTQdfac6L/08RAtLmAJ4xG3zdnuyIJDLqPeeCVgxq2sVIDwCfbGnc
eo2atabX/DtHv5CtVxLrqAo=
=z17q
-----END PGP SIGNATURE-----

Comment 2 Dik Takken 2003-07-07 12:36:19 UTC
Yes, I use Quanta 3.1.2 
Comment 3 Dik Takken 2003-07-07 12:43:56 UTC
Note: I created a project using Quanta 3.1 on machine A, tarred the project tree, and 
opened the project on machine B running Quanta 3.1.2. When opening a document from 
the project tree, Quanta said it could not find the file, displaying a path that only existed on 
machine A. 
Comment 4 András Manţia 2003-07-08 12:07:07 UTC
Subject: Re:  Quanta projectfile should store relative pathnames

I've found only one case where the file names were stored as absolute paths 
(for the toolbars in a project view). I've corrected this. But I can't 
reproduce any other error. Can you send me the exact error message and the 
webprj file?

Andras

Comment 5 András Manţia 2003-07-08 12:07:09 UTC
Subject: quanta/quanta/project

CVS commit by amantia: 

Store the toolbar names in the project file with relative paths. 

CCMAIL: 60821@bugs.kde.org


  M +3 -1      project.cpp   1.100


--- quanta/quanta/project/project.cpp  #1.99:1.100
@@ -1657,5 +1657,7 @@ void Project::slotSaveAsProjectView(bool
     {
       item = dom.createElement("viewtoolbar");
-      item.setAttribute("url", QuantaCommon::qUrl(toolbarList[i]) );
+      KURL url = toolbarList[i];
+      url = QExtFileInfo::toRelative(url, baseURL);
+      item.setAttribute("url", QuantaCommon::qUrl(url) );
       el.appendChild(item);
     }


Comment 6 András Manţia 2003-07-13 12:33:32 UTC
Subject: Re: Quanta projectfile should store relative pathnames

Closing as the previous fix seems to be enough. If not, please reopen the bug.