summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/options.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-02-05 22:45:55 +0100
committerRobert Pösel <robyer@seznam.cz>2017-02-06 00:05:33 +0100
commit5a3ac5642a0e4bf770d399ae015dd9e65b34cf71 (patch)
tree44e4ab503452495db36671b9d8318676ee0fbff4 /plugins/Msg_Export/src/options.cpp
parentd8142b3a62a0e0e5cb715f95f2e03d9bf808dff0 (diff)
Msg_Export: Optimize checking ignored contacts/protocols (addresses #609)
Makes export about 20% faster.
Diffstat (limited to 'plugins/Msg_Export/src/options.cpp')
-rwxr-xr-xplugins/Msg_Export/src/options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Msg_Export/src/options.cpp b/plugins/Msg_Export/src/options.cpp
index cf55041001..d2a027545e 100755
--- a/plugins/Msg_Export/src/options.cpp
+++ b/plugins/Msg_Export/src/options.cpp
@@ -210,6 +210,10 @@ int nExportCompleatList(HWND hParent, bool bOnlySelected)
MCONTACT hContact = (MCONTACT)sItem.lParam;
+ // Check if we should ignore this contact/protocol
+ if (!bIsExportEnabled(hContact))
+ continue;
+
list<CLDBEvent> &rclCurList = AllEvents[GetFilePathFromUser(hContact)];
MEVENT hDbEvent = db_event_first(hContact);