diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-11-16 08:49:24 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-11-16 08:49:24 +0200 |
commit | 6cf18be1f2a73e501cf855de4db7dd57a52581d5 (patch) | |
tree | 47bcde1bf26b06895df37a2fcad1882e7a732bb9 /options.cpp | |
parent | f08961f1a4193c49353e8610d557c07c50f6fb67 (diff) |
checking for core version and jabber api
Diffstat (limited to 'options.cpp')
-rw-r--r-- | options.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/options.cpp b/options.cpp index 90fc4f4..c0debec 100644 --- a/options.cpp +++ b/options.cpp @@ -93,7 +93,7 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA LVITEM item = {0}; TCHAR *tmp = NULL; char *tmp2 = NULL; - extern bool bIsMiranda09; + extern bool bIsMiranda09, bJabberAPI; NMLISTVIEW * hdr = (NMLISTVIEW *) lParam; switch (msg) { @@ -178,6 +178,7 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA mir_free(tmp); CheckStateLoadDB(hwndDlg, IDC_DEBUG_LOG, "bDebugLog", 0); EnableWindow(GetDlgItem(hwndDlg, IDC_JABBER_API), bIsMiranda09); + EnableWindow(GetDlgItem(hwndDlg, IDC_AUTO_EXCHANGE), (bIsMiranda09 && bJabberAPI)); { string keyinfo = "Current private key id: "; char *keyid = UniGetContactSettingUtf(NULL, szGPGModuleName, "KeyID", ""); @@ -366,6 +367,7 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA case WM_NOTIFY: { + EnableWindow(GetDlgItem(hwndDlg, IDC_AUTO_EXCHANGE), (bIsMiranda09 && IsDlgButtonChecked(hwndDlg, IDC_JABBER_API))); if(hdr && IsWindowVisible(hdr->hdr.hwndFrom) && hdr->iItem != (-1)) { if(hdr->hdr.code == NM_CLICK) |