tomm...@lyx.org wrote:
Author: tommaso
Date: Thu Dec 17 08:48:29 2009
New Revision: 32557
URL: http://www.lyx.org/trac/changeset/32557
Log:
Fix of bug #6333 (main document WA was entirely selected and cursor position lost
if F&R dialog was floating - does not happen anymore).
Modified:
lyx-devel/trunk/src/frontends/qt4/FindAndReplace.cpp
Modified: lyx-devel/trunk/src/frontends/qt4/FindAndReplace.cpp
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/FindAndReplace.cpp Thu Dec 17
04:20:16 2009 (r32556)
+++ lyx-devel/trunk/src/frontends/qt4/FindAndReplace.cpp Thu Dec 17
08:48:29 2009 (r32557)
@@ -260,6 +260,8 @@
{
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 @@
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));
Please don't comment out code like this. Either erase it or put a FIXME
explaining why this is commented.
Abdel.