void CRefLogDlg::OnBnClickedOk()\r
{\r
// TODO: Add your control notification handler code here\r
+ if (m_RefList.GetSelectedCount() == 1)\r
+ {\r
+ // get the selected row\r
+ POSITION pos = m_RefList.GetFirstSelectedItemPosition();\r
+ int selIndex = m_RefList.GetNextSelectedItem(pos);\r
+ if (selIndex < m_RefList.m_arShownList.GetCount())\r
+ {\r
+ // all ok, pick up the revision\r
+ GitRev* pLogEntry = reinterpret_cast<GitRev *>(m_RefList.m_arShownList.GetAt(selIndex));\r
+ // extract the hash\r
+ m_SelectedHash = pLogEntry->m_CommitHash;\r
+ }\r
+ }\r
+\r
OnOK();\r
}\r
\r