diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-20 15:18:28 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-20 15:18:28 +0000 |
commit | 48706e2b1904f0c39b37e296fa9778e7c621e6eb (patch) | |
tree | 26d40469ea4f3c6ccbe61660ce22184384389011 | |
parent | 341bb033359e6e73ceef395749a3512087b4d03f (diff) |
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
-rw-r--r-- | plugins/Import/src/miranda.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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:
|