Skip to content

Commit

Permalink
Do not use Ctrl key plugin if it's separator (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
clechasseur committed Dec 19, 2017
1 parent 65c2601 commit 3daaa15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PathCopyCopy/src/PathCopyCopyContextMenuExt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ STDMETHODIMP CPathCopyCopyContextMenuExt::QueryContextMenu(
if ((::GetKeyState(VK_CONTROL) && 0x8000) != 0 && pCtrlKeyPluginId != nullptr) {
// Find plugin to use.
auto pluginIt = m_sspAllPlugins.find(*pCtrlKeyPluginId);
if (pluginIt != m_sspAllPlugins.end()) {
if (pluginIt != m_sspAllPlugins.end() && !(*pluginIt)->IsSeparator()) {
ActOnFiles(*pluginIt, NULL);
}
}
Expand Down

0 comments on commit 3daaa15

Please sign in to comment.