From 48706e2b1904f0c39b37e296fa9778e7c621e6eb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 20 Mar 2015 15:18:28 +0000 Subject: if the custom profile was chosen, let's clean the list's selection git-svn-id: http://svn.miranda-ng.org/main/trunk@12453 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Import/src/miranda.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/Import') diff --git a/plugins/Import/src/miranda.cpp b/plugins/Import/src/miranda.cpp index f75450299a..099810d16d 100644 --- a/plugins/Import/src/miranda.cpp +++ b/plugins/Import/src/miranda.cpp @@ -128,8 +128,10 @@ INT_PTR CALLBACK MirandaPageProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM ofn.Flags = OFN_FILEMUSTEXIST | OFN_EXPLORER | OFN_NOCHANGEDIR | OFN_DONTADDTORECENT; ofn.nMaxFile = SIZEOF(str); ofn.lpstrInitialDir = pfd; - if (GetOpenFileName(&ofn)) + if (GetOpenFileName(&ofn)) { SetDlgItemText(hwndDlg, IDC_FILENAME, str); + SendDlgItemMessage(hwndDlg, IDC_LIST, LB_SETCURSEL, -1, 0); + } } break; @@ -157,7 +159,7 @@ INT_PTR CALLBACK MirandaOptionsPageProc(HWND hwndDlg, UINT message, WPARAM wPara EnableWindow(GetDlgItem(hwndDlg, IDC_STATIC_CONTACTS), TRUE); EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_CUSTOM), TRUE); EnableWindow(GetDlgItem(hwndDlg, IDC_STATIC_CUSTOM), TRUE); - CheckDlgButton(hwndDlg, IDC_RADIO_COMPLETE, BST_CHECKED); + CheckDlgButton(hwndDlg, IDC_RADIO_ALL, BST_CHECKED); return TRUE; case WM_COMMAND: -- cgit v1.2.3