Mercurial > hg > svgui
comparison view/View.cpp @ 728:596414d20ef0 tonioni
Fix failure to delete property stack when pane is deleted (sometimes). Fixes Tony crash bug #881, needs to go in SV as well.
author | Chris Cannam |
---|---|
date | Tue, 04 Mar 2014 15:28:32 +0000 |
parents | 1a0dfcbffaf1 |
children | 87512dacc4bd |
comparison
equal
deleted
inserted
replaced
727:4eb741d63161 | 728:596414d20ef0 |
---|---|
62 m_deleting(false), | 62 m_deleting(false), |
63 m_haveSelectedLayer(false), | 63 m_haveSelectedLayer(false), |
64 m_manager(0), | 64 m_manager(0), |
65 m_propertyContainer(new ViewPropertyContainer(this)) | 65 m_propertyContainer(new ViewPropertyContainer(this)) |
66 { | 66 { |
67 SVDEBUG << "View::View(" << this << ")" << endl; | 67 // cerr << "View::View(" << this << ")" << endl; |
68 } | 68 } |
69 | 69 |
70 View::~View() | 70 View::~View() |
71 { | 71 { |
72 // SVDEBUG << "View::~View(" << this << ")" << endl; | 72 // cerr << "View::~View(" << this << ")" << endl; |
73 | 73 |
74 m_deleting = true; | 74 m_deleting = true; |
75 delete m_propertyContainer; | 75 delete m_propertyContainer; |
76 } | 76 } |
77 | 77 |
2405 } | 2405 } |
2406 | 2406 |
2407 ViewPropertyContainer::ViewPropertyContainer(View *v) : | 2407 ViewPropertyContainer::ViewPropertyContainer(View *v) : |
2408 m_v(v) | 2408 m_v(v) |
2409 { | 2409 { |
2410 // cerr << "ViewPropertyContainer: " << this << " is owned by View " << v << endl; | |
2410 connect(m_v, SIGNAL(propertyChanged(PropertyContainer::PropertyName)), | 2411 connect(m_v, SIGNAL(propertyChanged(PropertyContainer::PropertyName)), |
2411 this, SIGNAL(propertyChanged(PropertyContainer::PropertyName))); | 2412 this, SIGNAL(propertyChanged(PropertyContainer::PropertyName))); |
2412 } | 2413 } |
2413 | 2414 |
2415 ViewPropertyContainer::~ViewPropertyContainer() | |
2416 { | |
2417 } |