Commit 35e64db0 authored by Tony Murray's avatar Tony Murray

Fix a typo that closed the wrong tab if you tried to close the non-active tab....

Fix a typo that closed the wrong tab if you tried to close the non-active tab.  Use a the safer removePage() function.


svn path=/trunk/KDE/kdenetwork/krdc/; revision=1145624
parent 34c261ab
......@@ -594,7 +594,7 @@ void MainWindow::closeTab(QWidget *widget)
kDebug(5010) << index;
if (!isNewConnectionPage) {
RemoteView *view = m_remoteViewList.takeAt(m_currentRemoteView);
RemoteView *view = m_remoteViewList.takeAt(index);
view->startQuitting();
#ifdef TELEPATHY_SUPPORT
m_tubesManager->closeTube(view->url());
......@@ -602,7 +602,7 @@ void MainWindow::closeTab(QWidget *widget)
widget->deleteLater();
}
m_tabWidget->removeTab(index);
m_tabWidget->removePage(widget);
// if closing the last connection, create new connection tab
if (m_tabWidget->count() == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment