diff --git a/src/mainframe.cpp b/src/mainframe.cpp index 4aeea823..880a0a1f 100644 --- a/src/mainframe.cpp +++ b/src/mainframe.cpp @@ -1759,12 +1759,11 @@ void CMainFrame::OnEmoticons(GtkMenuItem* mitem UNUSED, CMainFrame* _this) 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 )