Bug #572
closedbutterfly still flaps after cancelling a revise search request
0%
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.
Updated by Jing Tao about 22 years ago
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.