diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-02-18 17:45:59 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-02-18 17:45:59 +0000 |
commit | a8bb7b8d1f606b887c614d6200840fffb1bd48aa (patch) | |
tree | 39edcab678f9da538f4516cf55275315c6c79b33 /protocols/Tox/src/tox_network.cpp | |
parent | 64e4c45c42ce093c7e6e9a99a5a0938dc212aa59 (diff) |
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
Diffstat (limited to 'protocols/Tox/src/tox_network.cpp')
-rw-r--r-- | protocols/Tox/src/tox_network.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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");
|