Angus Leeming wrote: > Richard Heck wrote: >> For some reason, changing the type of the dialog switches the default >> button from OK to Cancel. This restores the correct default. Must be a >> QT bug. >> >> Still seeking two OKs...or at least some reaction! > > Hi, Richard. > > The button is changed because the GUI view is telling the > ButtonController that the state of one of the widgets has changed. > That's because listingsGB is emitting a signal when its own state is > changed and this signal is connected to some slot that contains code > to communicate the change of state to the ButtonController. > > So, the correct fix would be one of: > 1. tell listingsGB not to emit that signal. There's code elsewhere in > the qt4 dialog where some widget is temporarily silenced like that. > 2. Does listingsGB need to be connected to a slot at all? If not, then > the correct fix would be to remove this connection. Voilà! no more > Cancel! Thanks. There's a listingsGB->blockSignals() calls I've used elsewhere. I'll look at the code to see where it needs to go, or I'll check whether this signal needs emitting.
Richard -- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://frege.brown.edu/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto