Fix Undo with search-string-set

Makes it possible to use the find combobox's internal undo feature to undo a set search string.
This commit is contained in:
Daniel Ramoeller 2021-02-18 08:05:15 +01:00 committed by Juergen Spitzmueller
parent b6945764a4
commit 672ff09634

View File

@ -322,11 +322,8 @@ void GuiSearchWidget::findBufferChanged()
docstring search = theClipboard().getFindBuffer();
if (!search.empty()) {
LYXERR(Debug::CLIPBOARD, "from findbuffer: " << search);
#if QT_VERSION > 0x050000
findCO->setCurrentText(toqstr(search));
#else
findCO->setEditText(toqstr(search));
#endif
findCO->lineEdit()->selectAll();
findCO->lineEdit()->insert(toqstr(search));
}
}