diff options
author | aunsane <aunsane@gmail.com> | 2018-01-17 21:35:32 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-01-17 21:35:54 +0300 |
commit | 8e7d34b4716392f9d9a338e755027cff0a8f3161 (patch) | |
tree | 4415fd81d4389f1a2a5ea2dc0c6b25727f82fdd7 /protocols/Tox/src/tox_proto.cpp | |
parent | 51d67b220e416aabac680c66e1be306f140221f2 (diff) |
Tox: fixed crash on password deletion #1101
Diffstat (limited to 'protocols/Tox/src/tox_proto.cpp')
-rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 237fee5be0..7711d1e62a 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -153,6 +153,9 @@ int CToxProto::SetStatus(int iNewStatus) m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE;
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
+
+ UpdateStatusMenu(NULL, NULL);
+
return 0;
}
@@ -163,8 +166,9 @@ int CToxProto::SetStatus(int iNewStatus) if (old_status == ID_STATUS_OFFLINE && !IsOnline()) {
isTerminated = false;
m_iStatus = ID_STATUS_CONNECTING;
- hPollingThread = ForkThreadEx(&CToxProto::PollingThread, nullptr, nullptr);
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
+
+ hPollingThread = ForkThreadEx(&CToxProto::PollingThread, nullptr, nullptr);
return 0;
}
|