summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_events.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-02-20 23:41:39 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-02-20 23:41:39 +0000
commit858a7a599391c064481a630933f37c5ecd7c3fe5 (patch)
treea418743fdd9b44ac150bd5c6d78337349db748c7 /protocols/Tox/src/tox_events.cpp
parent1468a7f080de048e7c301af58d890d530c5ee685 (diff)
Tox: reworked node list
git-svn-id: http://svn.miranda-ng.org/main/trunk@12226 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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;
}