summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins/StartupStatus
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-04 19:56:32 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-04 19:56:32 +0000
commita1e783a12be8a16b780a78f74e0f399bed657d4c (patch)
treed06a993e2c1f074e6dcf2f7cd8b0d2bb7a4b40a8 /plugins/StatusPlugins/StartupStatus
parent21bc5f8f834fd4cf2b961264c2f258f6f3dd09e3 (diff)
replacement for the old clist interface code
git-svn-id: http://svn.miranda-ng.org/main/trunk@2193 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins/StartupStatus')
-rw-r--r--plugins/StatusPlugins/StartupStatus/main.cpp2
-rw-r--r--plugins/StatusPlugins/StartupStatus/options.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/main.cpp b/plugins/StatusPlugins/StartupStatus/main.cpp
index 9765482835..4c60b198ae 100644
--- a/plugins/StatusPlugins/StartupStatus/main.cpp
+++ b/plugins/StatusPlugins/StartupStatus/main.cpp
@@ -31,6 +31,7 @@ static HANDLE
HINSTANCE hInst;
int hLangpack = 0;
+CLIST_INTERFACE* pcli;
int CSModuleLoaded( WPARAM, LPARAM );
@@ -74,6 +75,7 @@ static INT_PTR SrvGetProfile( WPARAM wParam, LPARAM lParam )
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP( &pluginInfoEx );
+ pcli = (CLIST_INTERFACE*)CallService( MS_CLIST_RETRIEVE_INTERFACE, 0, 0);
if ( DBGetContactSettingByte(NULL, MODULENAME, SETTING_SETPROFILE, 1) ||
DBGetContactSettingByte(NULL, MODULENAME, SETTING_OFFLINECLOSE, 0))
diff --git a/plugins/StatusPlugins/StartupStatus/options.cpp b/plugins/StatusPlugins/StartupStatus/options.cpp
index 2584043769..d6b30052f7 100644
--- a/plugins/StatusPlugins/StartupStatus/options.cpp
+++ b/plugins/StatusPlugins/StartupStatus/options.cpp
@@ -858,12 +858,10 @@ static INT_PTR CALLBACK StatusProfilesOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wP
}
DBWriteContactSettingWord(NULL, MODULENAME, SETTING_PROFILECOUNT, (WORD)arProfiles.getCount());
- if (bNeedRebuildMenu) {
- // Rebuild status menu
- CLIST_INTERFACE* pcli = ( CLIST_INTERFACE* )CallService( MS_CLIST_RETRIEVE_INTERFACE, 0, 0 );
- if ( pcli && pcli->version > 4 )
- pcli->pfnReloadProtoMenus();
- }
+ // Rebuild status menu
+ if (bNeedRebuildMenu)
+ pcli->pfnReloadProtoMenus();
+
LoadMainOptions();
}
break;