summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-07-20 11:43:40 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-07-20 11:43:40 +0000
commit4d43e0d03f0c0db187a7f56c7520b959f644af5c (patch)
treea8cf5f674762641605643617436234c6a7214b0b
parent019d26d7ca0cb7aff0308adc8ef55130c31d18e0 (diff)
added .bak extension in database filter
git-svn-id: http://svn.miranda-ng.org/main/trunk@1077 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Dbx_mmap_SA/Import_SA/miranda.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/Dbx_mmap_SA/Import_SA/miranda.cpp b/plugins/Dbx_mmap_SA/Import_SA/miranda.cpp
index c0d56d1bf7..8b6a9496f4 100644
--- a/plugins/Dbx_mmap_SA/Import_SA/miranda.cpp
+++ b/plugins/Dbx_mmap_SA/Import_SA/miranda.cpp
@@ -237,21 +237,14 @@ INT_PTR CALLBACK MirandaPageProc(HWND hdlg,UINT message,WPARAM wParam,LPARAM lPa
OPENFILENAME ofn;
TCHAR str[MAX_PATH], text[256];
TCHAR *pfd;
- int index;
pfd = Utils_ReplaceVarsT(_T("%miranda_profile%"));
- // TranslateTS doesnt translate \0 separated strings
- index = mir_sntprintf(text, 64, _T("%s (*.dat)"), TranslateT("Miranda IM database")) + 1;
- _tcscpy(text + index, _T("*.dat")); index += 6;
- index += mir_sntprintf(text + index, 64, _T("%s (*.*)"), TranslateT("All Files")) + 1;
- _tcscpy(text + index, _T("*.*")); index += 4;
- text[index] = 0;
-
GetDlgItemText(hdlg, IDC_FILENAME, str, SIZEOF(str));
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400;
ofn.hwndOwner = hdlg;
+ mir_sntprintf(text, SIZEOF(text), _T("%s (*.dat, *.bak)%c*.dat;*.bak%c%s (*.*)%c*.*%c%c"), TranslateT("Miranda IM database"), 0, 0, TranslateT("All Files"), 0, 0, 0);
ofn.lpstrFilter = text;
ofn.lpstrDefExt = _T("dat");
ofn.lpstrFile = str;
@@ -259,7 +252,7 @@ INT_PTR CALLBACK MirandaPageProc(HWND hdlg,UINT message,WPARAM wParam,LPARAM lPa
ofn.nMaxFile = SIZEOF(str);
ofn.lpstrInitialDir = pfd;
if (GetOpenFileName(&ofn))
- SetDlgItemText(hdlg,IDC_FILENAME,str);
+ SetDlgItemText(hdlg, IDC_FILENAME, str);
mir_free(pfd);
break;