diff options
Diffstat (limited to 'plugins/UserInfoEx/src/psp_origin.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/psp_origin.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/UserInfoEx/src/psp_origin.cpp b/plugins/UserInfoEx/src/psp_origin.cpp index 78b85cc707..e9558e058e 100644 --- a/plugins/UserInfoEx/src/psp_origin.cpp +++ b/plugins/UserInfoEx/src/psp_origin.cpp @@ -55,11 +55,8 @@ public: bool OnRefresh() override
{
- LPCSTR pszProto;
- if (!PSGetBaseProto(m_hwnd, pszProto) || *pszProto == 0)
- return false;
-
- if (!m_hContact)
+ auto *pszProto = GetBaseProto();
+ if (!pszProto || !m_hContact)
return false;
MTime mt;
@@ -82,7 +79,8 @@ public: mt.TimeFormat(ptr, _countof(szTime) - (ptr - szTime));
SetDlgItemText(m_hwnd, TXT_DATEADDED, szTime);
}
- return false;
+
+ return PSPBaseDlg::OnRefresh();
}
void OnIconsChanged() override
|