On Saturday 25 August 2001 21:56, John Levon wrote:
> Angus recently added isBuilt() in controllers/ to make sure that
> the dialog is built before changing its readonly stuff.
> 
>      60 template <class Base>
>      61 void ControlDialog<Base>::show()
>      62 {
>      63         if (isBufferDependent() && !lv_.view()->available())
>      64                 return;
>      65
>      66         setParams();
>      67
>      68         static bool isBuilt = false;
>      69         if (!isBuilt) {
>      70                 isBuilt = true;
>      71                 view().build();
>      72         }
> 
> 
> unfortunately, the static seems to be sharing itself with all templatised
> objects. How can we get the expected per-dialog isBuilt() functionality ?

If the static isBuilt doesn't work, then define a non-static member variable 
bool isBuilt_.

Angus

Reply via email to