diff options
author | George Hazan <george.hazan@gmail.com> | 2014-09-29 13:33:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-09-29 13:33:33 +0000 |
commit | d424d08a5c9690ad4c544a1ffeaa5f66b3c49467 (patch) | |
tree | cfb765cf59866ecc7953fa6007f2bcb542613a49 /plugins/Import/src/miranda.cpp | |
parent | 0e9490b61e0609a525c3bde37b71b79f827b94f1 (diff) |
first profile to be selected automatically
git-svn-id: http://svn.miranda-ng.org/main/trunk@10629 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Import/src/miranda.cpp')
-rw-r--r-- | plugins/Import/src/miranda.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/plugins/Import/src/miranda.cpp b/plugins/Import/src/miranda.cpp index 50df4ab4cb..c97009c8fe 100644 --- a/plugins/Import/src/miranda.cpp +++ b/plugins/Import/src/miranda.cpp @@ -86,6 +86,7 @@ INT_PTR CALLBACK MirandaPageProc(HWND hdlg,UINT message,WPARAM wParam,LPARAM lPa if (lstrcmpi(pfd, pfd2))
SearchForLists(hdlg, pfd, NULL);
}
+ SendDlgItemMessage(hdlg, IDC_LIST, LB_SETCURSEL, 0, 0);
return TRUE;
case WM_COMMAND:
@@ -95,16 +96,14 @@ INT_PTR CALLBACK MirandaPageProc(HWND hdlg,UINT message,WPARAM wParam,LPARAM lPa break;
case IDOK:
- {
- TCHAR filename[MAX_PATH];
- GetDlgItemText(hdlg, IDC_FILENAME, filename, SIZEOF(filename));
- if (_taccess(filename, 4)) {
- MessageBox(hdlg, TranslateT("The given file does not exist. Please check that you have entered the name correctly."), TranslateT("Miranda Import"), MB_OK);
- break;
- }
- lstrcpy(importFile, filename);
- PostMessage(GetParent(hdlg), WIZM_GOTOPAGE, IDD_OPTIONS, (LPARAM)MirandaOptionsPageProc);
+ TCHAR filename[MAX_PATH];
+ GetDlgItemText(hdlg, IDC_FILENAME, filename, SIZEOF(filename));
+ if (_taccess(filename, 4)) {
+ MessageBox(hdlg, TranslateT("The given file does not exist. Please check that you have entered the name correctly."), TranslateT("Miranda Import"), MB_OK);
+ break;
}
+ lstrcpy(importFile, filename);
+ PostMessage(GetParent(hdlg), WIZM_GOTOPAGE, IDD_OPTIONS, (LPARAM)MirandaOptionsPageProc);
break;
case IDCANCEL:
|