summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_options.cpp')
-rw-r--r--protocols/Tox/src/tox_options.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp
index 5e5e37492f..d57f42ebdd 100644
--- a/protocols/Tox/src/tox_options.cpp
+++ b/protocols/Tox/src/tox_options.cpp
@@ -127,8 +127,7 @@ void CToxOptionsMain::ProfileImport_OnClick(CCtrlButton*)
if (mir_wstrcmpi(profilePath, defaultProfilePath) != 0)
CopyFile(profilePath, defaultProfilePath, FALSE);
- Tox_Options *options = NULL;
- tox_options_default(options);
+ Tox_Options *options = tox_options_new(NULL);
if (m_proto->LoadToxProfile(options))
{
CToxThread toxThread(options);