diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-01-06 11:11:35 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-01-06 11:11:35 +0900 |
commit | 319b7e50dc4ec08a7138e642b7a2131ffcd0de0d (patch) | |
tree | 50b715f8f856c496e5377ae7ee59c5582fbeaef7 | |
parent | 13bce0c9afc35764e0e13861c2e2dc5ffc13f10f (diff) | |
download | tdebase-319b7e50dc4ec08a7138e642b7a2131ffcd0de0d.tar.gz tdebase-319b7e50dc4ec08a7138e642b7a2131ffcd0de0d.zip |
konqueror: prevent media:/ or system:/media urls to be replaced by their
respective /media/... path when navigating to the parent folder using
mouse double click on empty space inside a listview.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | konqueror/listview/konq_listviewwidget.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/konqueror/listview/konq_listviewwidget.cpp b/konqueror/listview/konq_listviewwidget.cpp index 4c1198325..4c89f529d 100644 --- a/konqueror/listview/konq_listviewwidget.cpp +++ b/konqueror/listview/konq_listviewwidget.cpp @@ -541,8 +541,13 @@ void KonqBaseListViewWidget::contentsMouseDoubleClickEvent(TQMouseEvent *e) else { KParts::URLArgs args; args.trustedSource = true; - KURL upURL = m_dirLister->url().upURL(); - if (!upURL.isEmpty()) { + KURL baseURL(m_dirLister->url().internalReferenceURL()); + if (baseURL.isEmpty()) + { + baseURL = m_dirLister->url(); + } + KURL upURL = baseURL.upURL(); + if (!upURL.isEmpty()) { m_pBrowserView->extension()->openURLRequest(upURL, args); } } |