summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_profile.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-09-07 19:40:25 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-09-07 19:40:25 +0000
commited9fa764b873d1ae27ab98249a5d3bb31c253bdb (patch)
tree814b3f7b7fef7392bcb34039fd05da3a0f28c5b6 /protocols/Tox/src/tox_profile.cpp
parent935c3102e47f424ff2d493d48eef95101dde82da (diff)
Tox:
- change error message when tox core initialization is failed - trying to fix error with keepstatus reconnect git-svn-id: http://svn.miranda-ng.org/main/trunk@15297 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_profile.cpp')
-rw-r--r--protocols/Tox/src/tox_profile.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp
index 5980118043..d6fff1c75d 100644
--- a/protocols/Tox/src/tox_profile.cpp
+++ b/protocols/Tox/src/tox_profile.cpp
@@ -88,20 +88,10 @@ bool CToxProto::LoadToxProfile(Tox_Options *options)
options->savedata_data = data;
options->savedata_length = size;
options->savedata_type = TOX_SAVEDATA_TYPE_TOX_SAVE;
+ return true;
}
-
- TOX_ERR_NEW initError;
- tox = tox_new(options, &initError);
- if (initError != TOX_ERR_NEW_OK)
- {
- debugLogA(__FUNCTION__": failed to load tox profile (%d)", initError);
- ShowNotification(ToxErrorToString(initError), TranslateT("Unable to load Tox profile"), MB_ICONERROR);
- mir_free(data);
- return false;
- }
- mir_free(data);
- debugLogA(__FUNCTION__": tox profile load successfully");
- return true;
+
+ return false;
}
void CToxProto::SaveToxProfile()