diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-24 22:23:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-24 22:23:12 +0300 |
commit | 8c1471451343d0323f2cd0b3cdf7557eeea693ee (patch) | |
tree | 5525dcef2449db65e1710b649fab5c3558c1571b /plugins/TabSRMM | |
parent | 5d881a72cf5d25d61a83b5e8ad40420fbd0f4bb6 (diff) |
TabSRMM: more thorough SetStatusText porting
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index afd600d8c1..2322e9a7aa 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -280,10 +280,17 @@ void CTabBaseDlg::NotifyDeliveryFailure() const void CTabBaseDlg::SetStatusText(const wchar_t *wszText, HICON hIcon)
{
- m_bStatusSet = true;
- m_szStatusText = wszText;
- m_szStatusIcon = hIcon;
-
+ if (wszText != nullptr) {
+ m_bStatusSet = true;
+ m_szStatusText = wszText;
+ m_szStatusIcon = hIcon;
+ }
+ else {
+ m_bStatusSet = false;
+ m_szStatusText.Empty();
+ m_szStatusIcon = nullptr;
+ }
+
tabUpdateStatusBar();
}
|