>Author: tommaso
>Date: Tue Dec 29 18:21:09 2009
>New Revision: 32673
>URL: http://www.lyx.org/trac/changeset/32673
>
>Log:
>Now, on C-S-f, only the findWA cursor remains visible and blinking,
>as it should be (formerly, the replaceWA cursor used to remain
>visible but non-blinking).

>Modified: lyx-devel/trunk/src/frontends/qt4/FindAndReplace.cpp
>==============================================================
>@@ -258,7 +258,8 @@
>
> void FindAndReplaceWidget::showEvent(QShowEvent * /* ev */)  {
>-      replace_work_area_->redraw();
>+      view_.currentMainWorkArea()->redraw();
>+      replace_work_area_->setFocus();
>       find_work_area_->setFocus();
>       view_.setCurrentWorkArea(find_work_area_);
>       LYXERR(Debug::FIND, "Selecting entire find buffer");

I find it utterly strange that a widget is telling the mainWorkArea to
redraw. Especially since the mainworkarea is repainted anyway because it
is resized. Moreover, if I press C-S-f when the widget is already
visible, the cursor correctly disappears in the mainWorkArea. 

What's going wrong here ?

Vincent

Reply via email to