summaryrefslogtreecommitdiff
path: root/plugins/IEHistory/src/services.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-11 14:37:45 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-11 14:37:45 +0000
commit9587ecd839b2bd5c45aaa8c33d24118b8da2cea3 (patch)
treed9dac0e2451697602ef978a9c36104147cf19a39 /plugins/IEHistory/src/services.cpp
parent8bfb11ba69d6c35961e8881f7b88d2f7b26c0622 (diff)
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13535 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEHistory/src/services.cpp')
-rw-r--r--plugins/IEHistory/src/services.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/IEHistory/src/services.cpp b/plugins/IEHistory/src/services.cpp
index 7a86e17d08..9ad611dd62 100644
--- a/plugins/IEHistory/src/services.cpp
+++ b/plugins/IEHistory/src/services.cpp
@@ -45,8 +45,8 @@ INT_PTR ShowContactHistoryService(WPARAM wParam, LPARAM lParam)
int count = db_get_dw(NULL, ModuleName, "EventsToLoad", 0);
int loadInBackground = db_get_b(NULL, ModuleName, "UseWorkerThread", 0);
HistoryWindowData *data;
- data = (HistoryWindowData *) malloc(sizeof(HistoryWindowData));
- data->contact = (MCONTACT) wParam;
+ data = (HistoryWindowData *)malloc(sizeof(HistoryWindowData));
+ data->contact = (MCONTACT)wParam;
data->hIEView = NULL;
data->itemsPerPage = count;
data->index = 0;
@@ -54,9 +54,10 @@ INT_PTR ShowContactHistoryService(WPARAM wParam, LPARAM lParam)
data->loadMethod = (loadInBackground) ? LOAD_IN_BACKGROUND : 0;
historyDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_HISTORY), parent, HistoryDlgProc);
SetWindowLongPtr(historyDlg, DWLP_USER, (LONG_PTR)data);
-
- WindowList_Add(hOpenWindowsList, historyDlg, (MCONTACT) wParam);
- }else
+
+ WindowList_Add(hOpenWindowsList, historyDlg, (MCONTACT)wParam);
+ }
+ else
SetForegroundWindow(historyDlg);
ShowWindow(historyDlg, SW_SHOWNORMAL);
return 0;