From 01bf7444b5292baaead65a2d0f156b7405f40425 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 10 Dec 2013 17:15:40 +0000 Subject: [PATCH] Implementando novo diálogo para seleção de servidor --- connect.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/connect.c b/connect.c index 5b441a8..55be483 100644 --- a/connect.c +++ b/connect.c @@ -95,11 +95,14 @@ static void net_connected(H3270 *hSession) } else if(err) { + char buffer[4096]; + snprintf(buffer,4095,_( "Can't connect to %s" ), hSession->host.current ); + lib3270_disconnect(hSession); lib3270_popup_dialog( hSession, LIB3270_NOTIFY_ERROR, - _( "Network error" ), - _( "Unable to connect to host." ), + _( "Connection failed" ), + buffer, #ifdef _WIN32 _( "%s"), lib3270_win32_strerror(err) #else -- libgit2 0.21.2