Index: src/plugin/PluginClass.cpp |
diff --git a/src/plugin/PluginClass.cpp b/src/plugin/PluginClass.cpp |
index 96a54d4c754e78d4246661b6aa27fd43958bdbbf..6552f81c0253c0a76d790bd31e0ce763fced0bf1 100644 |
--- a/src/plugin/PluginClass.cpp |
+++ b/src/plugin/PluginClass.cpp |
@@ -1003,6 +1003,11 @@ CPluginTab* CPluginClass::GetTab(DWORD dwThreadId) |
return tab; |
} |
+bool CPluginClass::HasTabs() |
+{ |
+ ATL::CComCritSecLock<CComAutoCriticalSection> lock(s_criticalSectionLocal); |
+ return !s_threadInstances.empty(); |
+} |
STDMETHODIMP CPluginClass::QueryStatus(const GUID* pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT* pCmdText) |
{ |