diff options
author | fluxgen <fluxgen> | 2003-09-08 15:38:46 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-09-08 15:38:46 (GMT) |
commit | a4e781298c7e884506f0aa6efeea8efb84e3ee00 (patch) | |
tree | 706dbcede262c4720263a2b3cde8db8efb25df5a /src/FbTk/Subject.hh | |
parent | 8679fd20b1a8ddd2858922b3cd3d34d3b53dc065 (diff) | |
download | fluxbox_pavel-a4e781298c7e884506f0aa6efeea8efb84e3ee00.zip fluxbox_pavel-a4e781298c7e884506f0aa6efeea8efb84e3ee00.tar.bz2 |
fixed dead observer while notifying
Diffstat (limited to 'src/FbTk/Subject.hh')
-rw-r--r-- | src/FbTk/Subject.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/FbTk/Subject.hh b/src/FbTk/Subject.hh index ca8d142..000fc2e 100644 --- a/src/FbTk/Subject.hh +++ b/src/FbTk/Subject.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Subject.hh,v 1.3 2003/08/19 16:03:52 fluxgen Exp $ | 22 | // $Id: Subject.hh,v 1.4 2003/09/08 15:38:46 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_SUBJECT_HH | 24 | #ifndef FBTK_SUBJECT_HH |
25 | #define FBTK_SUBJECT_HH | 25 | #define FBTK_SUBJECT_HH |
@@ -44,8 +44,11 @@ public: | |||
44 | void notify(); | 44 | void notify(); |
45 | static void removeObserver(Observer *obs); | 45 | static void removeObserver(Observer *obs); |
46 | private: | 46 | private: |
47 | bool m_notify_mode; | ||
48 | |||
47 | typedef std::list<Observer *> ObserverList; | 49 | typedef std::list<Observer *> ObserverList; |
48 | ObserverList m_observerlist; | 50 | ObserverList m_observerlist; |
51 | ObserverList m_dead_observers; | ||
49 | 52 | ||
50 | typedef std::list<Subject *> SubjectList; | 53 | typedef std::list<Subject *> SubjectList; |
51 | static SubjectList s_subjectlist; | 54 | static SubjectList s_subjectlist; |