summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-07-02 15:53:14 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-07-02 15:53:14 +0300
commiteb03222690e473a293415a7f92c7c88b928b69cd (patch)
treee442b56bb0c8ca97e7cae7afbe25a7a8d19544d0 /plugins/UserInfoEx
parenta20f50cd04ce79a53d69e795c39d11469c9267ed (diff)
fixes #4509 (UinfoEx: проблема в диалоге экспорта контакта)
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r--plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp b/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp
index 809923608b..8a5e6b595e 100644
--- a/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp
+++ b/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp
@@ -87,20 +87,13 @@ static void DisplayNameToFileName(lpExImParam ExImContact, wchar_t *pszFileName,
static CMStringW FilterString(lpExImParam ExImContact)
{
CMStringW str;
+ str.Format(L"%s 1.0 (*.xml)%c*.xml%c", TranslateT("XMLCard"), 0, 0);
- switch (ExImContact->Typ) {
- case EXIM_SUBGROUP:
- case EXIM_ACCOUNT:
- str.Format(L"%s 1.0 (*.xml)%c*.xml%c", TranslateT("XMLCard"), 0, 0);
- __fallthrough;
-
- case EXIM_ALL:
+ if (ExImContact->Typ == EXIM_ALL || ExImContact->Typ == EXIM_CONTACT)
str.AppendFormat(L"%s (*.ini)%c*.ini%c", TranslateT("DBEditor++ File"), 0, 0);
- __fallthrough;
- case EXIM_CONTACT:
+ if (ExImContact->Typ == EXIM_CONTACT)
str.AppendFormat(L"%s 2.1 (*.vcf)%c*.vcf%c", TranslateT("Standard vCard"), 0, 0);
- }
str.AppendChar(0);
return str;