summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-10-28 21:53:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-10-28 21:53:01 +0300
commit3726509beeceda60e3e34d2d41db1f05c5dc46a7 (patch)
tree3c0ae15681c6b37f48dd981a95e2112bc06f29fb /src/core
parent9f211a10313ea6f508c5521bd2a0880e062b5f08 (diff)
crash fix
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stduserinfo/src/userinfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/stduserinfo/src/userinfo.cpp b/src/core/stduserinfo/src/userinfo.cpp
index 6ef8c4e5f6..30068577b1 100644
--- a/src/core/stduserinfo/src/userinfo.cpp
+++ b/src/core/stduserinfo/src/userinfo.cpp
@@ -122,6 +122,9 @@ class CUserInfoDlg : public CDlgBase
m_currentPage = i;
p.hItem = m_tree.InsertItem(&tvis);
}
+
+ if (m_currentPage == -1)
+ m_currentPage = 0;
}
void CreateDetailsTabs(DetailsPageData *ppg)