Skip to content

Commit

Permalink
Instead of creating a new tab, use current connection to do reconnection
Browse files Browse the repository at this point in the history
When click the reconnect button,
the previous version will create a new tab(a new connection) to do reconnection.

Instead of doing this, we use the current connection(current tab) to do reconnection.

Fix issue #33
  • Loading branch information
NCTULouis committed Jun 13, 2016
1 parent 9a8b4b7 commit a49bead
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mainframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1761,10 +1761,7 @@ void CMainFrame::OnReconnect(GtkMenuItem* mitem UNUSED, CMainFrame* _this)
CTelnetCon* con = _this->GetCurCon();
if( !con )
return;
if( con->IsClosed() )
con->Reconnect();
else
_this->NewCon( con->m_Site.m_Name, con->m_Site.m_URL, &con->m_Site);
con->Reconnect();
}

void CMainFrame::FlashWindow( bool flash )
Expand Down

0 comments on commit a49bead

Please sign in to comment.