diff --git a/src/lib/webtab/webtab.cpp b/src/lib/webtab/webtab.cpp index ba03d8b16..5b9802105 100644 --- a/src/lib/webtab/webtab.cpp +++ b/src/lib/webtab/webtab.cpp @@ -271,6 +271,7 @@ void WebTab::setZoomLevel(int level) void WebTab::detach() { + Q_ASSERT(m_window); Q_ASSERT(m_tabBar); // Remove icon from tab @@ -278,6 +279,7 @@ void WebTab::detach() m_tabIcon->setParent(this); // Remove the tab from tabbar + m_window->tabWidget()->removeTab(tabIndex()); setParent(0); // Remove the locationbar from window m_locationBar->setParent(this);