diff options
Diffstat (limited to 'plugins/QuickSearch')
-rw-r--r-- | plugins/QuickSearch/sr_global.pas | 12 | ||||
-rw-r--r-- | plugins/QuickSearch/sr_window.pas | 2 |
2 files changed, 1 insertions, 13 deletions
diff --git a/plugins/QuickSearch/sr_global.pas b/plugins/QuickSearch/sr_global.pas index d667d282c7..c7a160d990 100644 --- a/plugins/QuickSearch/sr_global.pas +++ b/plugins/QuickSearch/sr_global.pas @@ -244,21 +244,9 @@ begin ZeroMemory(@cmi,sizeof(cmi));
cmi.szName.a :=qs_name;
cmi.position :=500050000;
-// cmi.pszPopupName:=nil;
-// cmi.flags :=0;
cmi.pszService :=QS_SHOWSERVICE;
cmi.hIcon :=IcoLib_GetIcon(QS_QS,0);
MainMenuItem :=Menu_AddMainMenuItem(@cmi);
-
- begin
-{
- if (MainMenuItem<>0) then
- begin
- CallService(MO_REMOVEMENUITEM,MainMenuItem,0);
- MainMenuItem:=0;
- end;
-}
- end;
end;
// -------- column functions ---------
diff --git a/plugins/QuickSearch/sr_window.pas b/plugins/QuickSearch/sr_window.pas index ef57002e26..265bfbbfa1 100644 --- a/plugins/QuickSearch/sr_window.pas +++ b/plugins/QuickSearch/sr_window.pas @@ -1893,7 +1893,7 @@ begin case hMessage of
WM_DESTROY: begin
if srvhandle<>0 then DestroyServiceFunction(srvhandle);
- if mnuhandle<>0 then CallService(MO_REMOVEMENUITEM,mnuhandle,0);
+ if mnuhandle<>0 then Menu_RemoveItem(mnuhandle);
UnhookEvent(hAdd);
UnhookEvent(hDelete);
|