summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-07-16 16:13:05 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-07-16 16:13:05 +0300
commit4c2ae0ac2807781bdd6453f10a94c965cf0e5a81 (patch)
treece1f1f6ed3653a33bad0e7af3183e66dc3f2f44c /plugins/SecureIM/src
parent9d2b6d67e9c528de492f2c8e4df8fd0fb76b3257 (diff)
fixes #2267 (SecureIM: плагин зачем-то предлагает создать файл вместо импорта)
Diffstat (limited to 'plugins/SecureIM/src')
-rw-r--r--plugins/SecureIM/src/options.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SecureIM/src/options.cpp b/plugins/SecureIM/src/options.cpp
index 5043497cf2..8f9f7e1209 100644
--- a/plugins/SecureIM/src/options.cpp
+++ b/plugins/SecureIM/src/options.cpp
@@ -335,7 +335,7 @@ BOOL SaveExportRSAKeyDlg(HWND hParent, LPSTR key, BOOL priv)
ofn.lpstrFilter = temp;
ofn.hwndOwner = hParent;
ofn.nMaxFile = MAX_PATH;
- ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_NONETWORKBUTTON;
+ ofn.Flags = OFN_EXPLORER | OFN_NOREADONLYRETURN | OFN_CREATEPROMPT | OFN_OVERWRITEPROMPT;
ofn.lpstrFile = szFile;
ofn.lpstrTitle = (priv) ? Translate("Save Private Key File") : Translate("Save Public Key File");
@@ -361,7 +361,7 @@ BOOL LoadImportRSAKeyDlg(HWND hParent, LPSTR key, BOOL priv)
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = hParent;
ofn.nMaxFile = MAX_PATH;
- ofn.Flags = OFN_EXPLORER | OFN_CREATEPROMPT | OFN_OVERWRITEPROMPT | OFN_NOREADONLYRETURN;
+ ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_NONETWORKBUTTON;
ofn.lpstrFile = szFile;
char temp[MAX_PATH];
mir_snprintf(temp, "%s (*.asc)%c*.asc%c%s (*.*)%c*.*%c%c", Translate("ASC files"), 0, 0, Translate("All files"), 0, 0, 0);