summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-08-13 21:26:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-08-13 21:26:28 +0300
commitf17466bd1efebfb4c1f9031b11bc40fcf51ef53a (patch)
treee1f57057a9d1f4c21d2d467c75f2c0ebc644a571 /plugins/Msg_Export/src/main.cpp
parenta3f483f04556eed243bd03138e5ae336a04cb6c8 (diff)
Msg_Export:
- bCreatePathToFile replaced with CreateDirectoryTreeW() call; - g_bUseIntViewer exported from FileViewer.cpp; - more code cleaning
Diffstat (limited to 'plugins/Msg_Export/src/main.cpp')
-rwxr-xr-xplugins/Msg_Export/src/main.cpp9
1 files changed, 4 insertions, 5 deletions
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);