64 |
case WM_COMMAND: |
case WM_COMMAND: |
65 |
switch ( LOWORD(wparam) ) { |
switch ( LOWORD(wparam) ) { |
66 |
case IDC_FILE_SAVE_SELECT: |
case IDC_FILE_SAVE_SELECT: |
67 |
filename = get_filename_dlg( dlg, FILE_SAVE, _("Destination for Plaintext"), NULL, NULL ); |
filename = get_filesave_dlg( dlg, _("Destination for Plaintext"), NULL, NULL ); |
68 |
if( filename ) { |
if( filename ) { |
69 |
SetDlgItemText( dlg, IDC_FILE_SAVE_FILE, filename ); |
SetDlgItemText( dlg, IDC_FILE_SAVE_FILE, filename ); |
70 |
switch_buttons( dlg, 1 ); |
switch_buttons( dlg, 1 ); |
88 |
msg_box( dlg, _("Finished"), _("Save Plaintext"), MB_OK ); |
msg_box( dlg, _("Finished"), _("Save Plaintext"), MB_OK ); |
89 |
} |
} |
90 |
else if( IsDlgButtonChecked( dlg, IDC_FILE_SAVE_CLIP ) ) { |
else if( IsDlgButtonChecked( dlg, IDC_FILE_SAVE_CLIP ) ) { |
91 |
if( !gpgme_clip_istext_avail( &has_data ) && !has_data ) { |
if( !gpg_clip_istext_avail( &has_data ) && !has_data ) { |
92 |
msg_box( dlg, winpt_strerror( WPTERR_CLIP_ISEMPTY ), _("Save Plaintext"), MB_ERR ); |
msg_box( dlg, winpt_strerror( WPTERR_CLIP_ISEMPTY ), _("Save Plaintext"), MB_ERR ); |
93 |
return FALSE; |
return FALSE; |
94 |
} |
} |