Problem 1649

Summary: Qt user interface caches UI command tree, doesn't update when commands removed
Product: Geant4 Reporter: Michael Kelsey <kelsey>
Component: interfaces/commonAssignee: garnier
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P5    
Version: 10.0   
Hardware: All   
OS: All   

Description Michael Kelsey 2014-06-30 07:24:04 CEST
I have an application which may create new commands based on user macro input (e.g., selecting a particular detector geometry adds commands associated with configuring that geometry).  It is also possible for users to _remove_ command directories via macro.  

For the regular shell-based UI, this command removal works correctly.  However, the Qt-based UI does not reflect removal of commands properly.  Instead the graphical "Help" tree continues to display command directories which have been deleted.  Attempting to use those commands causes an error message (since they no longer exist in the true UImanager).

This problem was present in 9.6 and is still there in both 10.0 and 10.1-beta.
Comment 1 Michael Kelsey 2014-06-30 23:36:50 CEST
Changed category from intercoms to interfaces/common (which is where G4Qt lives).
Comment 2 garnier 2014-10-01 04:50:32 CEST
Not so easy to deal with commands removal.
In non-Qt based UI, the command tree is read each time you type a command or press "tab".
In the "Help" dialog on Qt, the tree is build once it is and there is no feedback when adding/removing command.

Go outside of the help widget and go back to it will solve this.
Comment 3 garnier 2015-01-12 11:41:17 CET
Won't solve this for the moment.