summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-03-23 21:52:10 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-03-23 21:52:10 +0100
commit8eef7ab62aefcebfa0242ed1f7a402df84ba995e (patch)
treeece0491d19eb6b14e12b1df425ab9d77c8eea1bd
parentFixup for last commit. (diff)
downloadrekonq-8eef7ab62aefcebfa0242ed1f7a402df84ba995e.tar.xz
Stop timers before deleting objects.
CCBUG:268328 CCBUG:266937
-rw-r--r--src/mainwindow.cpp2
-rw-r--r--src/urlbar/urlbar.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 20b978f5..75287ad7 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -165,6 +165,8 @@ MainWindow::MainWindow()
MainWindow::~MainWindow()
{
+ m_hidePopupTimer->stop();
+
rApp->bookmarkProvider()->removeBookmarkBar(m_bookmarksBar);
rApp->bookmarkProvider()->removeBookmarkPanel(m_bookmarksPanel);
rApp->removeMainWindow(this);
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index 18ed9aaf..f3ed9c3e 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -122,6 +122,7 @@ UrlBar::UrlBar(QWidget *parent)
UrlBar::~UrlBar()
{
+ _suggestionTimer->stop();
activateSuggestions(false);
_box.clear();
}