From de300f88d5cd37d926d89a11a411b7c1a0ca8a30 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Jan 2019 22:53:58 +0200 Subject: fixes #1737 (MsgExport cannot open a history file if JSON format is active) --- plugins/Msg_Export/src/utils.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/Msg_Export') 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; -- cgit v1.2.3