diff options
author | George Hazan <george.hazan@gmail.com> | 2016-06-12 10:57:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-06-12 10:57:29 +0000 |
commit | b385ab819019ec29cd44e9c9e6ae8be333298ef2 (patch) | |
tree | 84752003df7ec122d2e6e50cd651acd05a771ea4 /plugins/Sessions | |
parent | f99f0228cbfc908812ebbeec6415818dd5650010 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16950 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Sessions')
-rw-r--r-- | plugins/Sessions/Src/Main.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index fd71716171..f691a86397 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -122,12 +122,10 @@ INT_PTR CALLBACK SaveSessionDlgProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM l switch (msg) {
case WM_INITDIALOG:
TranslateDialogDefault(hdlg);
- {
- LoadSessionToCombobox(hdlg, 1, 5, "UserSessionDsc", 0);
+ LoadSessionToCombobox(hdlg, 1, 5, "UserSessionDsc", 0);
- LoadPosition(hdlg, "SaveDlg");
- ShowWindow(hdlg, SW_SHOW);
- }
+ LoadPosition(hdlg, "SaveDlg");
+ ShowWindow(hdlg, SW_SHOW);
break;
case WM_CLOSE:
@@ -397,13 +395,12 @@ INT_PTR CALLBACK LoadSessionDlgProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM) INT_PTR CloseCurrentSession(WPARAM, LPARAM)
{
HWND hWnd;
- int i = 0;
MessageWindowInputData mwid;
MessageWindowData mwd;
while (session_list[0] != 0) {
mwid.cbSize = sizeof(MessageWindowInputData);
- mwid.hContact = session_list[i];
+ mwid.hContact = session_list[0];
mwid.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH;
mwd.cbSize = sizeof(MessageWindowData);
|