diff --git a/core/document.cpp b/core/document.cpp index 3cf0c9e70..1038a6673 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -2749,19 +2749,16 @@ void Document::processAction( const Action * action ) return; } + KUrl realUrl = KUrl( url ); + // handle documents with relative path if ( d->m_url.isValid() ) { - KUrl completeUrl = KUrl( d->m_url.upUrl(), url ); - if ( completeUrl.isLocalFile() ) - { - d->openRelativeFile( completeUrl.url() ); - return; - } + realUrl = KUrl( d->m_url.upUrl(), url ); } // Albert: this is not a leak! - new KRun( KUrl( url ), widget() ); + new KRun( realUrl, widget() ); } } break;