Bug 70345

Summary: quanta encodes "#" reference symbol of .docrc files
Product: [Unmaintained] quanta Reporter: Johannes Orth <projectphoenix>
Component: generalAssignee: András Manţia <amantia>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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;