From a8bb7b8d1f606b887c614d6200840fffb1bd48aa Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 18 Feb 2015 17:45:59 +0000 Subject: fixed label size in options profile import work only when protocol offline warning when importing in existing profile git-svn-id: http://svn.miranda-ng.org/main/trunk@12182 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_network.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/Tox/src/tox_network.cpp') diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index 19d90b719b..72f090fe76 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -5,6 +5,11 @@ bool CToxProto::IsOnline() return isConnected && m_iStatus > ID_STATUS_OFFLINE; } +bool CToxProto::IsOffline() +{ + return !isConnected && m_iStatus == ID_STATUS_OFFLINE; +} + void CToxProto::BootstrapDht() { debugLogA("CToxProto::BootstrapDht: bootstraping DHT"); -- cgit v1.2.3