Bug 70345 - quanta encodes "#" reference symbol of .docrc files
Summary: quanta encodes "#" reference symbol of .docrc files
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-13 22:39 UTC by Johannes Orth
Modified: 2004-02-27 22:27 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 Johannes Orth 2003-12-13 22:39:04 UTC
Version:            (using KDE KDE 3.1.94)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 3.3.2 20031022 (Gentoo Linux 3.3.2-r3, propolice) 
OS:          Linux

Hi,

I have noticed a bug, while using the documentation tab in quanta 3.2 beta 2.

In the mysql.docrc you find several urls with references, for example "MySQL Optimization=manual_MySQL_Optimization.html#MySQL_Optimization"

The absolute url of this file on my harddisk is supposed to be file:/usr/share/apps/quanta/doc/mysql/manual_toc.html#MySQL_Optimization
But Quanta tries to open it as file:/usr/share/apps/quanta/doc/mysql/manual_toc.html%23MySQL_Optimization

So it encodes the "#". But as a reference sign the "#" is not supposed to be encoded. As a result I get a file not found error.
Comment 1 András Manţia 2004-02-27 22:27:05 UTC
CVS commit by amantia: 

Fix opening of documentation pages with references [#70345]

CCMAIL: 70345-done@bugs.kde.org


  M +1 -0      ChangeLog   1.205.2.17
  M +1 -2      quanta/quanta.cpp   1.414.2.8


--- quanta/ChangeLog  #1.205.2.16:1.205.2.17
@@ -23,4 +23,5 @@
         - fix saving of files with fish:// [#74716]
         - make insertion and renaming in the project tree view work as expected
+        - fix opening of documentation pages with references [#70345]
         - fix creation of remote projects [#73172]
         - various parsing fixes

--- quanta/quanta/quanta.cpp  #1.414.2.7:1.414.2.8
@@ -1665,6 +1665,5 @@ void QuantaApp::selectArea(int line1, in
 void QuantaApp::openDoc(const QString& url)
 {
-  KURL u;
-  u.setPath(url);
+  KURL u("file:"+url);
   if (u == m_htmlPartDoc->url())
     return;