Changeset 191

Show
Ignore:
Timestamp:
05/27/06 09:59:56 (2 years ago)
Author:
jordi
Message:

The observers are notified that the search has been started before it was, because otherwise it could be that the search finished before it could be notified the start and make believe the observer that they where still expecting results from the search.

In fact this happened with the test suite, which made it to never finish. Now it does finish.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/FindPter.cxx

    r172 r191  
    270270    if ( 0 != g_ascii_strcasecmp ("", textToFind ) ) 
    271271    { 
     272        // Inform all observers. 
     273        m_Document->notifyFindStarted (); 
     274 
    272275        // Queue a find job. 
    273276        m_Job = new JobFind (); 
     
    277280        m_Job->setFindPter (this); 
    278281        m_Job->enqueue (); 
    279  
    280         // Inform all observers. 
    281         m_Document->notifyFindStarted (); 
    282282    } 
    283283    else