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>
pull/159/head
Michele Calgaro 2 years ago
parent 13bce0c9af
commit 319b7e50dc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF
  1. 9
      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);
}
}

Loading…
Cancel
Save