summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index d673b7fa..4733ae3b 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -105,6 +105,16 @@ MainView::MainView(QWidget *parent)
}
+MainView::~MainView()
+{
+ // NOTE
+ // we wanna delete m_widgetBar later to get sure
+ // all its children (i.e. the urlbars) got deleted in
+ // WebTab dtor.
+ m_widgetBar->deleteLater();
+}
+
+
void MainView::addNewTabButton(QAction *newTabAction)
{
m_addTabButton->setDefaultAction(newTabAction);