mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
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:
parent
b6945764a4
commit
672ff09634
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user