1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00

[WebView] Correctly replace \t in selected text

This commit is contained in:
nowrep 2013-12-28 15:26:56 +01:00
parent b8cb20ced6
commit 1808208f66

View File

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