summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_events.cpp')
-rw-r--r--protocols/Tox/src/tox_events.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/protocols/Tox/src/tox_events.cpp b/protocols/Tox/src/tox_events.cpp
index 72626f5283..3820c500dd 100644
--- a/protocols/Tox/src/tox_events.cpp
+++ b/protocols/Tox/src/tox_events.cpp
@@ -26,20 +26,12 @@ int CToxProto::OnOptionsInit(WPARAM wParam, LPARAM)
odp.pfnDlgProc = MainOptionsProc;
Options_AddPage(wParam, &odp);
- mir_free(title);
-
- return 0;
-}
-
-int OptInit(WPARAM wParam, LPARAM)
-{
- OPTIONSDIALOGPAGE odp = { sizeof(odp) };
- odp.hInstance = g_hInstance;
- odp.flags = ODPF_BOLDGROUPS;
+ odp.pszTab = LPGEN("Nodes");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_NODES);
- odp.pszGroup = LPGEN("Network");
- odp.pszTitle = LPGEN("Tox nodes");
- odp.pfnDlgProc = ToxNodesOptionsProc;
+ odp.pfnDlgProc = NodesOptionsProc;
Options_AddPage(wParam, &odp);
+
+ mir_free(title);
+
return 0;
}