Abdelrazak Younes wrote:
Richard Heck wrote:
I've got a more or less working "Search as You Type" checkbox at
home. I'll commit later. One question: We want to cache this setting,
so it will be restored when a new dialog is open. But the only way I
see to do this---there is other stuff like it there---is to use a
static variable, since the dialog is destroyed and re-created each
time. But if we use a static variable, it will affect all GuiCitation
instances, even across windows. That's not terrible, but it is less
than ideal. Is there a way around this?
No, the dialogs are not destroyed, they're just hidden, so you can use
session handling safely here. See other dialogs for reference code.
As for the static solution, no again, because we (I) always make sure
to store the view id in the session info.
OK. Thanks.
rh