diff options
author | Michele Calgaro <[email protected]> | 2015-07-22 13:17:28 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2015-07-22 13:17:28 +0900 |
commit | 8942bd95385f6019a7ebfbeef7e1840412606be6 (patch) | |
tree | ca72376ae0fdb37f387a44049e0af05e38817968 /kdict/toplevel.cpp | |
parent | 5f168becbc4ec7e916b53bef44bafc452b7684ea (diff) | |
download | tdenetwork-8942bd95385f6019a7ebfbeef7e1840412606be6.tar.gz tdenetwork-8942bd95385f6019a7ebfbeef7e1840412606be6.zip |
Fixed thread handling in KDict. This resolsed bug 1748.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kdict/toplevel.cpp')
-rw-r--r-- | kdict/toplevel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kdict/toplevel.cpp b/kdict/toplevel.cpp index 3ab47b05..46e4f02a 100644 --- a/kdict/toplevel.cpp +++ b/kdict/toplevel.cpp @@ -114,6 +114,12 @@ TopLevel::TopLevel(TQWidget* parent, const char* name) TopLevel::~TopLevel() { + if (splitter) + delete splitter; + if (interface) + delete interface; + if (global) + delete global; } @@ -636,6 +642,7 @@ void TopLevel::toggleMatchListShow() matchView->reparent(this,0,matchView->pos(),true); matchView->hide(); delete splitter; + splitter=NULL; setCentralWidget(queryView); } else // list is not visible -> show it |