[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/src
From: Harald Fernengel <harald () kdevelop ! org>
Date: 2003-01-23 21:38:42
[Download RAW message or body]
CVS commit by harald:
show text-files referenced in html-files in the text editor to avoid ugly output
M +8 -1 partcontroller.cpp 1.65
--- kdevelop/src/partcontroller.cpp #1.64:1.65
@@ -223,5 +223,12 @@ void PartController::editDocument(const
void PartController::showDocument(const KURL &url, const QString &context)
{
-kdDebug(9000) << "SHOW: " << url.url() << " context=" << context << endl;
+ kdDebug(9000) << "SHOW: " << url.url() << " context=" << context << endl;
+
+ if ( url.isLocalFile() && KMimeType::findByURL(url)->name() != "text/html" ) {
+ // a link in a html-file pointed to a local text file - display
+ // it in the editor instead of a html-view to avoid uglyness
+ editDocument( url );
+ return;
+ }
DocumentationPart *part = 0;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic