Index: src/plugin/PluginClass.cpp |
diff --git a/src/plugin/PluginClass.cpp b/src/plugin/PluginClass.cpp |
index 787c706c2275e04bb5d5a12a1afc89e9b7fed6a0..798314d37ce2d7e9d2c430fd8f23eb3ea555b550 100644 |
--- a/src/plugin/PluginClass.cpp |
+++ b/src/plugin/PluginClass.cpp |
@@ -1274,9 +1274,10 @@ void CPluginClass::DisplayPluginMenu(HMENU hMenu, int nToolbarCmdID, POINT pt, U |
{ |
CPluginSettings* settings = CPluginSettings::GetInstance(); |
std::wstring urlString = GetTab()->GetDocumentUrl(); |
- if (client->IsWhitelistedUrl(urlString)) |
+ std::string filterText = client->GetWhitelistingFilter(urlString); |
+ if (!filterText.empty()) |
{ |
- settings->RemoveWhiteListedDomain(ToCString(client->GetHostFromUrl(urlString))); |
+ client->RemoveFilter(filterText); |
} |
else |
{ |