summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/options.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/options.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/options.cpp')
-rwxr-xr-xplugins/Msg_Export/src/options.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Msg_Export/src/options.cpp b/plugins/Msg_Export/src/options.cpp
index 4710593346..6434b40661 100755
--- a/plugins/Msg_Export/src/options.cpp
+++ b/plugins/Msg_Export/src/options.cpp
@@ -273,7 +273,7 @@ public:
cmbFileViewer.AddString(L"C:\\WinNT\\Notepad.exe");
cmbFileViewer.AddString(L"C:\\Program Files\\Notepad++\\notepad++.exe");
- CheckDlgButton(m_hwnd, IDC_USE_INTERNAL_VIEWER, bUseInternalViewer() ? BST_CHECKED : BST_UNCHECKED);
+ CheckDlgButton(m_hwnd, IDC_USE_INTERNAL_VIEWER, g_bUseIntViewer ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_REPLACE_MIRANDA_HISTORY, g_bReplaceHistory ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_APPEND_NEWLINE, g_bAppendNewLine ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_USE_UTF8_IN_NEW_FILES, g_bUseUtf8InNewFiles ? BST_CHECKED : BST_UNCHECKED);
@@ -312,7 +312,7 @@ public:
g_plugin.setWString("FileViewerPrg", sFileViewerPrg.c_str());
bUseInternalViewer(IsDlgButtonChecked(m_hwnd, IDC_USE_INTERNAL_VIEWER) == BST_CHECKED);
- g_plugin.setByte("UseInternalViewer", bUseInternalViewer());
+ g_plugin.setByte("UseInternalViewer", g_bUseIntViewer);
bool bNewRp = IsDlgButtonChecked(m_hwnd, IDC_REPLACE_MIRANDA_HISTORY) == BST_CHECKED;
if (g_bReplaceHistory != bNewRp) {