725 |
if (rc) |
if (rc) |
726 |
BUG (0); |
BUG (0); |
727 |
ctx->dlg = dlg; |
ctx->dlg = dlg; |
728 |
|
|
729 |
|
// XXX: for file operations the progress dialog will be |
730 |
|
// reloaded somewhere and thus a 'dummy' dialog remains |
731 |
|
|
732 |
|
/* we use it here to make sure that pfx_cleanup will not use |
733 |
|
any weird values. */ |
734 |
memset (&pfx, 0, sizeof (pfx)); |
memset (&pfx, 0, sizeof (pfx)); |
735 |
pfx.hwnd = dlg; |
if (cmd != FM_VERIFY && cmd != FM_SIGN && reg_prefs.fm.progress > 0) { |
736 |
gpgme_set_progress_cb (ctx->ctx, progress_callback, &pfx); |
pfx.hwnd = dlg; |
737 |
|
gpgme_set_progress_cb (ctx->ctx, progress_callback, &pfx); |
738 |
|
} |
739 |
|
|
740 |
/* Commands we need before we can perform the main command */ |
/* Commands we need before we can perform the main command */ |
741 |
switch (fm_cmd) { |
switch (fm_cmd) { |