[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kpdf/core
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2005-02-28 18:12:13
Message-ID: 20050228181213.501CF148A2 () office ! kde ! org
[Download RAW message or body]
CVS commit by aacid:
Follow relative links
BUGS: 100366
M +10 -1 document.cpp 1.36
--- kdegraphics/kpdf/core/document.cpp #1.35:1.36
@@ -926,9 +926,18 @@ void KPDFDocument::processLink( const KP
else
{
+ QString url = browse->url();
+
+ // fix for #100366, documents with relative links that are the form of http:foo.pdf
+ if (url.find("http:") == 0 && url.find("http://") == -1 && url.right(4) == ".pdf")
+ {
+ openRelativeFile(url.mid(5));
+ return;
+ }
+
// get service for web browsing
KService::Ptr ptr = KServiceTypeProfile::preferredService("text/html", "Application");
KURL::List lst;
// append 'url' parameter to the service and run it
- lst.append( browse->url() );
+ lst.append( url );
KRun::run( *ptr, lst );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic