diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-05 16:03:36 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-05 16:03:36 -0500 |
commit | a0f523a8b19360d875c4055398dc7191eda08f5d (patch) | |
tree | 3f554b5ce33c40ba1b9d4176aeef04414821bc45 /kplato | |
parent | 76524e734a13c3d9b19e4b882e573c0924e32e61 (diff) | |
download | koffice-a0f523a8b19360d875c4055398dc7191eda08f5d.tar.gz koffice-a0f523a8b19360d875c4055398dc7191eda08f5d.zip |
Do not delete referenced MainWindow in document destructor
This resolves Bug 1729
Diffstat (limited to 'kplato')
-rw-r--r-- | kplato/kptpart.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kplato/kptpart.cc b/kplato/kptpart.cc index 3f767e67..53ed107f 100644 --- a/kplato/kptpart.cc +++ b/kplato/kptpart.cc @@ -83,10 +83,14 @@ Part::~Part() { delete m_commandHistory; // before project, in case of dependencies... delete m_project; delete m_projectDialog; - if (m_embeddedGanttView) + if (m_embeddedGanttView) { delete m_embeddedGanttView; - if (m_embeddedContext) + m_embeddedGanttView = 0L; + } + if (m_embeddedContext) { delete m_embeddedContext; + m_embeddedContext = 0L; + } } |