1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

[Fix] Setting background of speed dial to paths with spaces.

This commit is contained in:
nowrep 2012-03-09 18:49:26 +01:00
parent 291468a9ab
commit ad4ba2b888
2 changed files with 3 additions and 1 deletions

View File

@ -285,7 +285,7 @@ QString SpeedDial::urlFromUserInput(const QString &url)
void SpeedDial::setBackgroundImage(const QString &image)
{
m_backgroundImage = image;
m_backgroundImage = QUrl(image).toEncoded();
}
void SpeedDial::setBackgroundImageSize(const QString &size)

View File

@ -757,6 +757,8 @@ void WebView::createSelectedTextContextMenu(QMenu* menu, const QWebHitTestResult
menu->addSeparator();
selectedText.truncate(20);
// KDE is displaying new lines in menu actions ... weird -,-
selectedText.replace("\n", " ").replace("\t", "");
SearchEngine engine = mApp->searchEnginesManager()->activeEngine();
menu->addAction(engine.icon, tr("Search \"%1 ..\" with %2").arg(selectedText, engine.name), this, SLOT(searchSelectedText()));