Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginClass.cpp

Issue 5115380229996544: Issue 1104 - Cannot uncheck Disable on website option in tool bar (Closed)
Patch Set: Created March 4, 2015, 12:24 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/plugin/AdblockPlusClient.h ('K') | « src/plugin/AdblockPlusClient.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
{
« src/plugin/AdblockPlusClient.h ('K') | « src/plugin/AdblockPlusClient.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld