WebTab: Correctly remove itself from TabWidget

remotes/origin/Falkon/3.0
David Rosca 8 years ago
parent 8817493c68
commit f0488c33c3
  1. 2
      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);

Loading…
Cancel
Save