Summary: | Search only works when Show Messages is on at startup | ||
---|---|---|---|
Product: | quanta | Reporter: | osavill |
Component: | general | Assignee: | András Manţia <amantia> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.2.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
osavill
2004-03-05 15:41:29 UTC
I can't reproduce it. :-( Even if I hide the Message pane (View->Show Messages), the search dialog appears and I can search in the file. After the preview if I invoke the search, it searches the rendered text (like in Konqueror). OK, I can reproduce now. You forgot to tell me that your preview was configured to appear at the bottom... CVS commit by amantia: Fix search problems when Preview is set to appear in the bottom area. CCMAIL: 76832-done@bugs.kde.org M +24 -12 quanta.cpp 1.414.2.18 --- quanta/quanta/quanta.cpp #1.414.2.17:1.414.2.18 @@ -3770,8 +3770,12 @@ void QuantaApp::slotFind() KAction *a = 0L; int id = 0; + QWidget *w = focusWidget(); + if (m_htmlPart->view() == w || m_htmlPartDoc->view() == w) + { QWidgetStack *s = widgetStackOfHtmlPart(); if (s) id = s->id(s->visibleWidget()); - if (id == 0 && m_view->writeExists()) + } + if (id <= 0 && m_view->writeExists()) { a = m_view->write()->view()->actionCollection()->action("edit_find"); @@ -3793,8 +3797,12 @@ void QuantaApp::slotFindAgain () KAction *a = 0L; int id = 0; + QWidget *w = focusWidget(); + if (m_htmlPart->view() == w || m_htmlPartDoc->view() == w) + { QWidgetStack *s = widgetStackOfHtmlPart(); if (s) id = s->id(s->visibleWidget()); - if (id == 0 && m_view->writeExists()) + } + if (id <= 0 && m_view->writeExists()) { a = m_view->write()->view()->actionCollection()->action("edit_find_next"); @@ -3816,8 +3824,12 @@ void QuantaApp::slotFindAgainB () KAction *a = 0L; int id = 0; + QWidget *w = focusWidget(); + if (m_htmlPart->view() == w || m_htmlPartDoc->view() == w) + { QWidgetStack *s = widgetStackOfHtmlPart(); if (s) id = s->id(s->visibleWidget()); - if (id == 0 && m_view->writeExists()) + } + if (id <= 0 && m_view->writeExists()) { a = m_view->write()->view()->actionCollection()->action("edit_find_prev"); |