]> git.lyx.org Git - features.git/commitdiff
Fix of bug #6333 (main document WA was entirely selected and cursor position lost...
authorTommaso Cucinotta <tommaso@lyx.org>
Thu, 17 Dec 2009 07:48:29 +0000 (07:48 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Thu, 17 Dec 2009 07:48:29 +0000 (07:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32557 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/FindAndReplace.cpp

index cdaa38460085ba55cec27cf0b73bc9b061f042f0..8a77a6f66fbe82e0ec4773d4faf928122577f7af 100644 (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;
 }