X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbindable.h;h=8ea78034794f85c972a1bc43a88040ae9d4ceaa2;hb=f159ebc4120fb057c9d59efb0e5c7c36bff6f40a;hp=8651c70ee066b6cbfa2e8f40cd967b0a92f148cd;hpb=02feac06937ec4e8e122a833b4903ccf0bd6d030;p=libs%2Fgl.git diff --git a/source/bindable.h b/source/bindable.h index 8651c70e..8ea78034 100644 --- a/source/bindable.h +++ b/source/bindable.h @@ -100,6 +100,7 @@ private: void init(const T *o) { cleanup = (o ? &unbind : 0); + slot = 0; if(o) o->bind(); else @@ -168,6 +169,7 @@ private: void init(T *o) { old = T::current(); + slot = 0; cleanup = (o!=old ? &restore : 0); if(o) o->bind();