diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-23 10:01:07 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-23 10:01:07 +0000 |
commit | f1fb66125cf0747022043cfdc9c83dfb8edb438e (patch) | |
tree | 435c243e3bdae3074d02b039514071cb99fbbd66 /plugins | |
parent | 34c0b8e8dba1e82842f61eb4ccc2b9ab2696695a (diff) |
fix for the overoptimized code
git-svn-id: http://svn.miranda-ng.org/main/trunk@14348 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/HistoryPlusPlus/historypp.dpr | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/HistoryPlusPlus/historypp.dpr b/plugins/HistoryPlusPlus/historypp.dpr index 4d3028518d..e5b5ec6360 100644 --- a/plugins/HistoryPlusPlus/historypp.dpr +++ b/plugins/HistoryPlusPlus/historypp.dpr @@ -454,12 +454,6 @@ begin Result := 0;
LoadIcons2;
NotifyAllForms(HM_NOTF_ICONS2CHANGED,0,0);
- //change menu icons
- Menu_ModifyItem(MenuHandles[miContact].Handle, nil, hppIcons[HPP_ICON_CONTACTHISTORY].handle);
- Menu_ModifyItem(MenuHandles[miSystem].Handle, nil, hppIcons[HPP_ICON_CONTACTHISTORY].handle);
- Menu_ModifyItem(MenuHandles[miSearch].Handle, nil, hppIcons[HPP_ICON_GLOBALSEARCH].handle);
- Menu_ModifyItem(MenuHandles[miEmpty].Handle, nil, hppIcons[HPP_ICON_TOOL_DELETEALL].handle);
- Menu_ModifyItem(MenuHandles[miSysEmpty].Handle, nil, hppIcons[HPP_ICON_TOOL_DELETEALL].handle);
end;
//the context menu for a contact is about to be built v0.1.0.1+
@@ -479,7 +473,10 @@ begin if (PrevShowHistoryCount xor ShowHistoryCount) or (count <> MenuCount) then
begin
if hLast = 0 then
+ begin
Menu_ShowItem(MenuHandles[miEmpty].Handle, 0);
+ Menu_ShowItem(MenuHandles[miContact].Handle, 0);
+ end;
if ShowHistoryCount then
text := pWideChar(Format('%s [%u]',[TranslateW(MenuHandles[miContact].Name),count]))
else if PrevShowHistoryCount then
@@ -487,7 +484,7 @@ begin else
text := nil;
- Menu_ModifyItem(MenuHandles[miContact].Handle, text, INVALID_HANDLE_VALUE, 0);
+ Menu_ModifyItem(MenuHandles[miContact].Handle, text);
MenuCount := count;
PrevShowHistoryCount := ShowHistoryCount;
end;
|