diff options
author | Michele Calgaro <[email protected]> | 2015-07-22 13:17:28 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2015-08-26 23:08:46 +0900 |
commit | c016e4809df23ff5a7c9e8aee4826b1e3ecd5b20 (patch) | |
tree | 293a2d6d60c2824a598f58f975160353e10a26d2 /kdict/toplevel.cpp | |
parent | 1da54d8c259178905007ddd1979d53a9e5901cb2 (diff) | |
download | tdenetwork-c016e4809df23ff5a7c9e8aee4826b1e3ecd5b20.tar.gz tdenetwork-c016e4809df23ff5a7c9e8aee4826b1e3ecd5b20.zip |
Fixed thread handling in KDict. This resolsed bug 1748.
(cherry picked from commit 8942bd95385f6019a7ebfbeef7e1840412606be6)
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 |