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:
parent
b8cb20ced6
commit
1808208f66
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user