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

Unified Diff: Shared/PluginClass.cpp

Issue 9998007: Initial libadblockplus integration (Closed)
Patch Set: Created April 1, 2013, 9:55 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
Index: Shared/PluginClass.cpp
===================================================================
--- a/Shared/PluginClass.cpp
+++ b/Shared/PluginClass.cpp
@@ -566,23 +566,23 @@
CPluginDictionary* dictionary = CPluginDictionary::GetInstance(false);
settings->SetBool("statusbarasked", true);
settings->Write();
-
+
HKEY pHkey;
HKEY pHkeySub;
LSTATUS regRes = 0;
regRes = RegOpenCurrentUser(KEY_WRITE, &pHkey);
-
+
// Do we have enough rights to enable a status bar?
if (regRes != 0)
{
// We use the tab window here and in the next few calls, since the browser window may still not be available
LRESULT res = MessageBox((HWND)m_hTabWnd, dictionary->Lookup("ERROR_CAN_NOT_ENABLE_STATUS_BAR"),
- dictionary->Lookup("ERROR_CAN_NOT_ENABLE_STATUS_BAR_TITLE"), MB_OK);
+ dictionary->Lookup("ERROR_CAN_NOT_ENABLE_STATUS_BAR_TITLE"), MB_OK);
return;
}
// Ask if a user wants to enable a status bar automatically
LRESULT res = MessageBox((HWND)m_hTabWnd, dictionary->Lookup("ERROR_STATUS_BAR_DISABLED"),
- dictionary->Lookup("ERROR_STATUS_BAR_DISABLED_TITLE"), MB_YESNO);
+ dictionary->Lookup("ERROR_STATUS_BAR_DISABLED_TITLE"), MB_YESNO);
if (res == IDYES)
{
DWORD trueth = 1;
@@ -2117,7 +2117,7 @@
if (!isVisible)
{
CPluginDictionary* dictionary = CPluginDictionary::GetInstance();
-
+
LRESULT res = MessageBox(NULL, dictionary->Lookup("ERROR_STATUS_BAR_DISABLED"), dictionary->Lookup("ERROR_STATUS_BAR_DISABLED_TITLE"), MB_YESNO);
if (res == IDYES)
{

Powered by Google App Engine
This is Rietveld