sources/interface.cpp

branch
protocol5
changeset 103
b78c0ca832a9
parent 84
3bd32eec3d57
child 106
7b156b764d11
--- a/sources/interface.cpp	Wed May 27 21:15:52 2015 +0300
+++ b/sources/interface.cpp	Sat Jan 09 02:20:28 2016 +0200
@@ -640,10 +640,7 @@
 	if (CurrentInputState == INPUTSTATE_CONFIRM_DISCONNECTION)
 	{
 		if (ch == 'y' or ch == 'Y')
-		{
-			Session.disconnect();
-			DisconnectConfirmFunction();
-		}
+			disconnected();
 		else if (ch == 'n' or ch == 'N')
 			set_input_state (INPUTSTATE_NORMAL);
 
@@ -1028,3 +1025,11 @@
 		NeedInputRender = true;
 	}
 }
+
+// -------------------------------------------------------------------------------------------------
+//
+void Interface::disconnected()
+{
+	Session.disconnect();
+	set_input_state (INPUTSTATE_NORMAL);
+}

mercurial