comparison view/View.cpp @ 729:25b3d5802e6e

Fix failure to delete property stack when pane is deleted (sometimes)
author Chris Cannam
date Tue, 04 Mar 2014 15:32:28 +0000
parents 1a0dfcbffaf1
children 87512dacc4bd
comparison
equal deleted inserted replaced
725:c27a3604fe6f 729:25b3d5802e6e
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 }