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:
Tommaso Cucinotta 2009-12-17 07:48:29 +00:00
parent 0580704eae
commit d5b329502b

View File

@ -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;
}