summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-21 21:40:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-21 21:40:22 +0300
commitc0cd7f30039d7ad91428fed5ab212693f45fea9a (patch)
tree89ee0b1938460ef86ddd6d8d37b3c6aedd4c67c5 /protocols/Tox/src/tox_proto.cpp
parent340910bcc3aaea0fb48a8679cf93e855b413fdc9 (diff)
Tox: profile file to be removed when account is destroyed
Diffstat (limited to 'protocols/Tox/src/tox_proto.cpp')
-rw-r--r--protocols/Tox/src/tox_proto.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp
index 0134ccfa58..5b05d878c2 100644
--- a/protocols/Tox/src/tox_proto.cpp
+++ b/protocols/Tox/src/tox_proto.cpp
@@ -226,6 +226,11 @@ int CToxProto::OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam)
case EV_PROTO_ONMENU:
return OnInitStatusMenu();
+
+ case EV_PROTO_ONERASE:
+ ptrW profilePath(GetToxProfilePath());
+ _wunlink(profilePath);
+ break;
}
return 1;