Bug #572
closed
butterfly still flaps after cancelling a revise search request
Added by Matt Jones over 22 years ago.
Updated about 22 years ago.
Category:
morpho - general
Description
If you search for something, then click "Revise Search" to reopen the search
dialog, the butterfly starts flapping in the search results window. If you then
hit "Cancel" in the dialog, you are returned to the search window, but the
butterfly keeps on flapping forever. Need to turn it off.
In ReviseSearchCommand class, only after search started, the MorphoFrame will
be set busy. When it finished, it set busy false. So now, if you click revise
search button in a search reslut MorphoFrame, a query dialog will show. But
the butterfly in the search result MophoFrame wouldn't flap. So if you click
cancel button in query dialog, the butterfly wouldn't flap either. But if you
click search button, the butterfly will flap and it will stop when searh is
done.
By the way, in ReviseSearchCommand class, SwingWorker class was added. Now
search itself will be executed in another thread. It will improve Morpho's
responsibility.
Original Bugzilla ID was 572
Also available in: Atom
PDF