Bug #1482
closedReviseQuery cause morpho menu and button dupliate
0%
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.
Updated by Jing Tao over 20 years ago
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