mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
TabWidget: Correctly emit tabRemoved when detaching tab
This commit is contained in:
parent
43e472e50e
commit
ebaab19f88
@ -651,7 +651,12 @@ void TabWidget::detachTab(WebTab* tab)
|
||||
disconnect(tab->webView(), SIGNAL(urlChanged(QUrl)), this, SIGNAL(changed()));
|
||||
disconnect(tab->webView(), SIGNAL(ipChanged(QString)), m_window->ipLabel(), SLOT(setText(QString)));
|
||||
|
||||
const int index = tab->tabIndex();
|
||||
|
||||
tab->detach();
|
||||
tab->setPinned(false);
|
||||
|
||||
emit tabRemoved(index);
|
||||
|
||||
if (count() == 0) {
|
||||
m_window->close();
|
||||
@ -668,7 +673,6 @@ void TabWidget::detachTab(int index)
|
||||
}
|
||||
|
||||
detachTab(tab);
|
||||
tab->setPinned(false);
|
||||
|
||||
BrowserWindow* window = mApp->createWindow(Qz::BW_NewWindow);
|
||||
window->setStartTab(tab);
|
||||
|
Loading…
Reference in New Issue
Block a user