Commit 4a66f367 authored by Tony Murray's avatar Tony Murray

Check if the widget being closed is the new connection page, instead of the current widget.

BUG: 255731

svn path=/trunk/KDE/kdenetwork/krdc/; revision=1207583
parent 6d591e65
......@@ -617,7 +617,7 @@ void MainWindow::disconnectHost()
void MainWindow::closeTab(QWidget *widget)
{
bool isNewConnectionPage = m_tabWidget->currentWidget() == m_newConnectionWidget;
bool isNewConnectionPage = widget == m_newConnectionWidget;
const int index = m_tabWidget->indexOf(widget);
kDebug(5010) << index;
......
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