diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-12-25 01:57:50 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-12-25 01:57:50 +0200 |
commit | 6234ae30aedee812febea6ded7c028448011746a (patch) | |
tree | c0e77753b3a0b3bad9160bd2ce38fb645e10c02b /init.cpp | |
parent | b0b170cb9f6159b8cfc4d52da53b1fab4ee5035e (diff) |
fixed first run bugs
Diffstat (limited to 'init.cpp')
-rwxr-xr-x | init.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -97,6 +97,7 @@ void init_vars() bAutoExchange = DBGetContactSettingByte(NULL, szGPGModuleName, "bAutoExchange", 0);
password = UniGetContactSettingUtf(NULL, szGPGModuleName, "szKeyPassword", _T(""));
debuglog.init();
+ bIsMiranda09 = (DWORD)CallService(MS_SYSTEM_GETVERSION, 0, 0) >= 0x00090001?true:false;
bJabberAPI = DBGetContactSettingByte(NULL, szGPGModuleName, "bJabberAPI", bIsMiranda09?1:0);
bPresenceSigning = DBGetContactSettingByte(NULL, szGPGModuleName, "bPresenceSigning", 0);
bFileTransfers = DBGetContactSettingByte(NULL, szGPGModuleName, "bFileTransfers", 0);
@@ -202,9 +203,9 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) void InitCheck();
void FirstRun();
- bIsMiranda09 = (DWORD)CallService(MS_SYSTEM_GETVERSION, 0, 0) >= 0x00090001?true:false;
FirstRun();
- InitCheck();
+ if(!DBGetContactSettingByte(NULL, szGPGModuleName, "FirstRun", 1))
+ InitCheck();
InitIconLib();
if(ServiceExists(MS_MSG_ADDICON))
{
|