From d424d08a5c9690ad4c544a1ffeaa5f66b3c49467 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 29 Sep 2014 13:33:33 +0000 Subject: first profile to be selected automatically git-svn-id: http://svn.miranda-ng.org/main/trunk@10629 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Import/src/miranda.cpp | 17 ++++++++--------- 1 file 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: -- cgit v1.2.3