diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-01-08 20:42:46 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-01-08 20:42:46 +0000 |
commit | 6c522e9c6e3ff74674efa1d7d9c0934958ddd3ee (patch) | |
tree | f488a111382b8b1167621d05b51f1ddb5b2f32fb /plugins | |
parent | 9d2c010c3cd02546f5c2b22270fe8724b8bda46b (diff) |
ability to disable client description in info panel (r208)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3024 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TabSRMM/src/infopanel.cpp | 19 | ||||
-rw-r--r-- | plugins/TabSRMM/src/translator.cpp | 1 |
2 files changed, 12 insertions, 8 deletions
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp index 6c7b857a3b..d90b48d121 100644 --- a/plugins/TabSRMM/src/infopanel.cpp +++ b/plugins/TabSRMM/src/infopanel.cpp @@ -505,13 +505,6 @@ void CInfoPanel::RenderIPUIN(const HDC hdc, RECT& rcItem) clr = m_ipConfig.clrs[IPFONTID_UIN];
if (tszUin[0]) {
- TCHAR temp[256];
- DBVARIANT dbv = {0};
- if ( !M->GetTString(m_dat->cache->getActiveContact(), m_dat->cache->getActiveProto(), "MirVer", &dbv)) {
- mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client: %s"), dbv.ptszVal);
- ::DBFreeVariant(&dbv);
- }
- else mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client not cached yet"));
if (m_dat->idle) {
time_t diff = time(NULL) - m_dat->idle;
@@ -520,7 +513,17 @@ void CInfoPanel::RenderIPUIN(const HDC hdc, RECT& rcItem) mir_sntprintf(szBuf, safe_sizeof(szBuf), TranslateT("%s Idle: %dh,%02dm"), tszUin, i_hrs, i_mins);
}
else _tcscpy_s (szBuf, 256, tszUin);
- _tcscat_s(szBuf, 256, temp);
+
+ if(M->GetByte("ShowClientDescription",1)) {
+ TCHAR temp[256];
+ DBVARIANT dbv = {0};
+ if ( !M->GetTString(m_dat->cache->getActiveContact(), m_dat->cache->getActiveProto(), "MirVer", &dbv)) {
+ mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client: %s"), dbv.ptszVal);
+ ::DBFreeVariant(&dbv);
+ }
+ else mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client not cached yet"));
+ _tcscat_s(szBuf, 256, temp);
+ }
SIZE sUIN;
::GetTextExtentPoint32(hdc, szBuf, lstrlen(szBuf), &sUIN);
diff --git a/plugins/TabSRMM/src/translator.cpp b/plugins/TabSRMM/src/translator.cpp index 51016a77e3..b2b4eaa52b 100644 --- a/plugins/TabSRMM/src/translator.cpp +++ b/plugins/TabSRMM/src/translator.cpp @@ -49,6 +49,7 @@ TOptionListItem m_lvItemsModPlus[] = { 0, LPGENT("Disable error popups on sending failures"), 0, LOI_TYPE_SETTING, (UINT_PTR)"adv_noErrorPopups", 1,
0, LPGENT("Automatic keyboard layout: Do not load the system default for new contacts"), 1, LOI_TYPE_SETTING, (UINT_PTR)"adv_leaveKeyboardAlone", 0,
0, LPGENT("Enable unattended send (experimental feature, required for multisend and send later) (*)"), 0, LOI_TYPE_SETTING, (UINT_PTR)"sendLaterAvail", 0,
+ 0, LPGENT("Show client description in info panel"), 0, LOI_TYPE_SETTING, (UINT_PTR)"ShowClientDescription", 0,
0, NULL, 0, 0, 0, 0
};
|