diff --git a/src/lib/plugins/speeddial.cpp b/src/lib/plugins/speeddial.cpp index e5e07d9cf..5f6a307da 100644 --- a/src/lib/plugins/speeddial.cpp +++ b/src/lib/plugins/speeddial.cpp @@ -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) diff --git a/src/lib/webview/webview.cpp b/src/lib/webview/webview.cpp index 92c252037..24e0917b8 100644 --- a/src/lib/webview/webview.cpp +++ b/src/lib/webview/webview.cpp @@ -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()));