diff options
Diffstat (limited to 'plugins')
-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();
}
|