Improved handling of bookmarks with spaces and other strange characters.

svn path=/trunk/kdebase/konsole/; revision=187022
wilder-portage
Stephan Binner 24 years ago
parent 06ced39074
commit 833a232d4d
  1. 3
      konsole/konsole.cpp
  2. 2
      konsole/konsolebookmarkhandler.cpp

@ -1535,7 +1535,8 @@ void Konsole::enterURL(const QString& URL, const QString&)
se->setListenToKeyPress(true);
}
if (URL.startsWith("file:")) {
newtext=URL.mid(5);
KURL uglyurl(URL);
newtext=uglyurl.prettyURL().mid(5);
KRun::shellQuote(newtext);
te->emitText("\001\013cd "+newtext+"\r");
}

@ -53,7 +53,7 @@ KonsoleBookmarkHandler::KonsoleBookmarkHandler( Konsole *konsole, bool toplevel
QString KonsoleBookmarkHandler::currentURL() const
{
return m_konsole->baseURL().url();
return m_konsole->baseURL().prettyURL();
}
void KonsoleBookmarkHandler::importOldBookmarks( const QString& path,

Loading…
Cancel
Save