summaryrefslogtreecommitdiff
path: root/plugins/Ping/src
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-02-05 16:20:19 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-02-05 16:20:19 +0000
commita9a7eacedee12d0121e20d96530cb7183735c242 (patch)
treed889c2788c753e60ee01df5f4c307d2422387f6d /plugins/Ping/src
parent8abfc9c62ea915190680fc590544bc3bbfe66682 (diff)
Ping: Fixed double main menu
git-svn-id: http://svn.miranda-ng.org/main/trunk@8044 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Ping/src')
-rw-r--r--plugins/Ping/src/menu.cpp2
-rw-r--r--plugins/Ping/src/options.cpp7
-rw-r--r--plugins/Ping/src/pingthread.cpp4
3 files changed, 6 insertions, 7 deletions
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("<all>"));
{
- 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);
}