diff options
author | aunsane <aunsane@gmail.com> | 2017-02-25 18:55:39 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-02-25 18:55:39 +0300 |
commit | fe9f7606361446d20201092d2ade4ccfbdf5ca36 (patch) | |
tree | cf40d83926df53329a0b8f4da49acfe9250dd785 /protocols/Tox/src/tox_options.cpp | |
parent | bfb0c2c0d7fb26a218fc1a0c634f98d7b81f5367 (diff) |
Tox: fixed #684
Diffstat (limited to 'protocols/Tox/src/tox_options.cpp')
-rw-r--r-- | protocols/Tox/src/tox_options.cpp | 3 |
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);
|