From a9a7eacedee12d0121e20d96530cb7183735c242 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Wed, 5 Feb 2014 16:20:19 +0000 Subject: Ping: Fixed double main menu git-svn-id: http://svn.miranda-ng.org/main/trunk@8044 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Ping/src/menu.cpp | 2 +- plugins/Ping/src/options.cpp | 7 +++---- plugins/Ping/src/pingthread.cpp | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'plugins/Ping') diff --git a/plugins/Ping/src/menu.cpp b/plugins/Ping/src/menu.cpp index 18fd96d8b3..36d8b07f11 100644 --- a/plugins/Ping/src/menu.cpp +++ b/plugins/Ping/src/menu.cpp @@ -9,7 +9,7 @@ void InitMenus() CLISTMENUITEM mi = { sizeof(mi) }; mi.flags = CMIF_TCHAR; mi.popupPosition = 500099900; - mi.ptszPopupName = LPGENT("PING"); + mi.ptszPopupName = LPGENT("Ping"); mi.position = 2000060000; mi.hIcon = hIconResponding; mi.ptszName = LPGENT("Enable all pings"); diff --git a/plugins/Ping/src/options.cpp b/plugins/Ping/src/options.cpp index e5a2a7dea8..1167c00c39 100644 --- a/plugins/Ping/src/options.cpp +++ b/plugins/Ping/src/options.cpp @@ -6,7 +6,7 @@ PingOptions options; static INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { switch ( msg ) { - case WM_INITDIALOG: { + case WM_INITDIALOG: TranslateDialogDefault( hwndDlg ); if(ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) @@ -43,7 +43,6 @@ static INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA EnableWindow(GetDlgItem(hwndDlg, IDC_CHK_BLOCK), FALSE); } return TRUE; - } case WM_COMMAND: if ( HIWORD( wParam ) == EN_CHANGE && ( HWND )lParam == GetFocus()) { switch( LOWORD( wParam )) { @@ -191,7 +190,7 @@ INT_PTR CALLBACK DlgProcDestEdit(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l SendDlgItemMessage(hwndDlg, IDC_COMBO_DESTPROTO, CB_INSERTSTRING, (WPARAM)-1, (LPARAM)TranslateT("")); { - int num_protocols; + int num_protocols = 0; PROTOACCOUNT **pppDesc; ProtoEnumAccounts(&num_protocols,&pppDesc); @@ -502,7 +501,7 @@ int PingOptInit(WPARAM wParam,LPARAM) odp.hInstance = hInst; odp.flags = ODPF_BOLDGROUPS|ODPF_TCHAR; odp.ptszGroup = LPGENT("Network"); - odp.ptszTitle = LPGENT("PING"); + odp.ptszTitle = LPGENT("Ping"); odp.ptszTab = LPGENT("Settings"); odp.pszTemplate = MAKEINTRESOURCEA(IDD_DIALOG1); diff --git a/plugins/Ping/src/pingthread.cpp b/plugins/Ping/src/pingthread.cpp index 283f407934..72a8f2bfa6 100644 --- a/plugins/Ping/src/pingthread.cpp +++ b/plugins/Ping/src/pingthread.cpp @@ -751,7 +751,7 @@ LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar OPENOPTIONSDIALOG oop = {0}; oop.cbSize = sizeof(oop); oop.pszGroup = "Network"; - oop.pszPage = "PING"; + oop.pszPage = "Ping"; oop.pszTab = "Settings"; Options_Open(&oop); } @@ -761,7 +761,7 @@ LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar OPENOPTIONSDIALOG oop = {0}; oop.cbSize = sizeof(oop); oop.pszGroup = "Network"; - oop.pszPage = "PING"; + oop.pszPage = "Ping"; oop.pszTab = "Hosts"; Options_Open(&oop); } -- cgit v1.2.3