Index: src/plugin/PluginClass.cpp |
diff --git a/src/plugin/PluginClass.cpp b/src/plugin/PluginClass.cpp |
index 7424228c5471944032c2cb2dbe43b01dec97c403..eb816413c273cbbb3e3a47c8022738715c2c72a2 100644 |
--- a/src/plugin/PluginClass.cpp |
+++ b/src/plugin/PluginClass.cpp |
@@ -1272,9 +1272,10 @@ void CPluginClass::DisplayPluginMenu(HMENU hMenu, int nToolbarCmdID, POINT pt, U |
{ |
CPluginSettings* settings = CPluginSettings::GetInstance(); |
std::wstring urlString = GetTab()->GetDocumentUrl(); |
- if (client->IsWhitelistedUrl(urlString)) |
+ auto exceptionFilter = client->IsWhitelistedUrl(urlString); |
+ if (exceptionFilter) |
{ |
- settings->RemoveWhiteListedDomain(ToCString(client->GetHostFromUrl(urlString))); |
+ client->RemoveFilter(exceptionFilter.filterText); |
} |
else |
{ |