mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 11:52:25 +00:00
Fix of bug #6333 (main document WA was entirely selected and cursor position lost if F&R dialog was floating - does not happen anymore).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32557 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0580704eae
commit
d5b329502b
@ -260,6 +260,8 @@ void FindAndReplaceWidget::showEvent(QShowEvent * /* ev */)
|
||||
{
|
||||
replace_work_area_->redraw();
|
||||
find_work_area_->setFocus();
|
||||
view_.setCurrentWorkArea(find_work_area_);
|
||||
LYXERR(Debug::FIND, "Selecting entire find buffer");
|
||||
dispatch(FuncRequest(LFUN_BUFFER_BEGIN));
|
||||
dispatch(FuncRequest(LFUN_BUFFER_END_SELECT));
|
||||
find_work_area_->redraw();
|
||||
@ -278,11 +280,11 @@ void FindAndReplaceWidget::hideEvent(QHideEvent *ev)
|
||||
|
||||
bool FindAndReplaceWidget::initialiseParams(std::string const & /* params */)
|
||||
{
|
||||
find_work_area_->redraw();
|
||||
replace_work_area_->redraw();
|
||||
find_work_area_->setFocus();
|
||||
dispatch(FuncRequest(LFUN_BUFFER_BEGIN));
|
||||
dispatch(FuncRequest(LFUN_BUFFER_END_SELECT));
|
||||
// find_work_area_->redraw();
|
||||
// replace_work_area_->redraw();
|
||||
// find_work_area_->setFocus();
|
||||
// dispatch(FuncRequest(LFUN_BUFFER_BEGIN));
|
||||
// dispatch(FuncRequest(LFUN_BUFFER_END_SELECT));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user