From f17466bd1efebfb4c1f9031b11bc40fcf51ef53a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Aug 2018 21:26:28 +0300 Subject: Msg_Export: - bCreatePathToFile replaced with CreateDirectoryTreeW() call; - g_bUseIntViewer exported from FileViewer.cpp; - more code cleaning --- plugins/Msg_Export/src/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/Msg_Export/src/main.cpp') diff --git a/plugins/Msg_Export/src/main.cpp b/plugins/Msg_Export/src/main.cpp index 08cb626d0e..84fb32e7ec 100755 --- a/plugins/Msg_Export/src/main.cpp +++ b/plugins/Msg_Export/src/main.cpp @@ -59,11 +59,10 @@ CMPlugin::CMPlugin() : static INT_PTR ShowExportHistory(WPARAM wParam, LPARAM /*lParam*/) { - if (bUseInternalViewer()) { + if (g_bUseIntViewer) bShowFileViewer(wParam); - return 0; - } - bOpenExternaly(wParam); + else + bOpenExternaly(wParam); return 0; } @@ -151,7 +150,7 @@ int CMPlugin::Load() g_sTimeFormat = _DBGetStringW(NULL, MODULENAME, "TimeFormat", L"d s"); sFileViewerPrg = _DBGetStringW(NULL, MODULENAME, "FileViewerPrg", L""); - bUseInternalViewer(getBool("UseInternalViewer", bUseInternalViewer())); + g_bUseIntViewer = getBool("UseInternalViewer", true); g_bUseJson = getBool("UseJson", false); g_bAppendNewLine = getBool("AppendNewLine", true); -- cgit v1.2.3