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:
parent
291468a9ab
commit
ad4ba2b888
@ -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)
|
||||
|
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user