OK, I have a new idea for this bug, but by knowledge of Qt is too weak to be sure how to do this. What I want to do is run updateToolbars whenever the window gets the focus, so that icons are correctly enabled.
Here is the patch I came up with. Questions: 1/ Bennett, Edwin, does it work? 2/ Qt gurus, does it make sense? JMarc
Index: src/frontends/qt2/QtView.C =================================================================== --- src/frontends/qt2/QtView.C (revision 14042) +++ src/frontends/qt2/QtView.C (working copy) @@ -131,6 +131,13 @@ void QtView::update_view_state_qt() } +void QtView::setFocus() +{ + updateToolbars(); + QMainWindow::setFocus(); +} + + void QtView::update_view_state() { // let the user see the explicit message