diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-08 22:53:58 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-08 22:53:58 +0200 |
commit | de300f88d5cd37d926d89a11a411b7c1a0ca8a30 (patch) | |
tree | b6cee61c8e4ae14088a1bb6dabc0285d4b33d442 /plugins/Msg_Export/src | |
parent | fbd5aa5ee4d56dc7226f7ef179b86f3736e16317 (diff) |
fixes #1737 (MsgExport cannot open a history file if JSON format is active)
Diffstat (limited to 'plugins/Msg_Export/src')
-rwxr-xr-x | plugins/Msg_Export/src/utils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index 5f7be44f0a..8b629bd6a4 100755 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -329,6 +329,8 @@ void ReplaceDBPath(wstring &sRet) wstring GetFilePathFromUser(MCONTACT hContact)
{
wstring sFilePath = g_sExportDir + _DBGetStringW(hContact, MODULENAME, "FileName", g_sDefaultFile.c_str());
+ if (g_bUseJson)
+ sFilePath += L".json";
bool bNickUsed = sFilePath.find(L"%nick%") != string::npos;
|