summaryrefslogtreecommitdiff
path: root/plugins/Import/src/miranda.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-03-19 22:25:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-03-19 22:25:22 +0000
commit886d5e6f982d65f8d4f9a13ec52cce049fe4757f (patch)
tree8d84d6b4e49007629dd6fe094d10e6eea3431299 /plugins/Import/src/miranda.cpp
parent347b63f23b40b403470d9636d691337cf8713e54 (diff)
Import: an option added to support profile mirroring (precise copy)
git-svn-id: http://svn.miranda-ng.org/main/trunk@12438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Import/src/miranda.cpp')
-rw-r--r--plugins/Import/src/miranda.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/Import/src/miranda.cpp b/plugins/Import/src/miranda.cpp
index 1b6a3a0b6a..f75450299a 100644
--- a/plugins/Import/src/miranda.cpp
+++ b/plugins/Import/src/miranda.cpp
@@ -150,13 +150,14 @@ INT_PTR CALLBACK MirandaOptionsPageProc(HWND hwndDlg, UINT message, WPARAM wPara
switch (message) {
case WM_INITDIALOG:
TranslateDialogDefault(hwndDlg);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_COMPLETE), TRUE);
EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_ALL), TRUE);
EnableWindow(GetDlgItem(hwndDlg, IDC_STATIC_ALL), TRUE);
EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_CONTACTS), TRUE);
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_ALL, BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, IDC_RADIO_COMPLETE, BST_CHECKED);
return TRUE;
case WM_COMMAND:
@@ -166,9 +167,16 @@ INT_PTR CALLBACK MirandaOptionsPageProc(HWND hwndDlg, UINT message, WPARAM wPara
break;
case IDOK:
+ if (IsDlgButtonChecked(hwndDlg, IDC_RADIO_COMPLETE)) {
+ nImportOption = IMPORT_CUSTOM;
+ nCustomOptions = INT32_MAX;
+ PostMessage(GetParent(hwndDlg), WIZM_GOTOPAGE, IDD_PROGRESS, (LPARAM)ProgressPageProc);
+ break;
+ }
+
if (IsDlgButtonChecked(hwndDlg, IDC_RADIO_ALL)) {
nImportOption = IMPORT_ALL;
- nCustomOptions = 0;//IOPT_MSGSENT|IOPT_MSGRECV|IOPT_URLSENT|IOPT_URLRECV;
+ nCustomOptions = 0;
PostMessage(GetParent(hwndDlg), WIZM_GOTOPAGE, IDD_PROGRESS, (LPARAM)ProgressPageProc);
break;
}