Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instead of creating a new tab, use current connection to do reconnection #77

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Instead of creating a new tab, use current connection to do reconnection
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
NCTULouis committed Jun 13, 2016
commit a49bead464557b2be392563454459c71118b4554
5 changes: 1 addition & 4 deletions src/mainframe.cpp
Original file line number Diff line number Diff line change
@@ -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 )