From 5a3ac5642a0e4bf770d399ae015dd9e65b34cf71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 5 Feb 2017 22:45:55 +0100 Subject: Msg_Export: Optimize checking ignored contacts/protocols (addresses #609) Makes export about 20% faster. --- plugins/Msg_Export/src/options.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/Msg_Export/src/options.cpp') 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 &rclCurList = AllEvents[GetFilePathFromUser(hContact)]; MEVENT hDbEvent = db_event_first(hContact); -- cgit v1.2.3