Skip to content

Commit

Permalink
Solve Reconnection Problem
Browse files Browse the repository at this point in the history
Instead of creating a new tab, use current connection to do reconnect
  • Loading branch information
NCTULouis committed May 23, 2016
1 parent 9a8b4b7 commit 76a52f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mainframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1761,10 +1761,8 @@ 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 76a52f8

Please sign in to comment.