Bug #1482
closed
ReviseQuery cause morpho menu and button dupliate
Added by Jing Tao over 20 years ago.
Updated over 20 years ago.
Description
Here is the steps to repoduce the bug:
1) do a search.
2) In search result frame, click ReviseSearch button or menu.
3) In the new query dialog, change the query title to different name.
4) Click search butoon in query dialog.
5) After search is done, the search frame will have duplicate buttons and
menus.
The bug is fixed. When morpho do revise search, if you changed the query title,
it will update frame title too.
In updateWindow method in UIController, it call another method registerWindow.
registerWindow not only puts the updated window into window list, but also will
copy a gui action to the frame too. This will cause the menu item and button
duplicated. I created a private method and it will hanlde put windows into
window list and it will be called by updateWindow(it not call registerWindow
again) and registerWindow. GUI action would be duplicated.
Jing
Original Bugzilla ID was 1482
Also available in: Atom
PDF