OSDN Git Service
(root)
/
tortoisegit
/
TortoiseGitJp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PushDlg: Fix: Wrong remote selected after selection via ref-browser.
[tortoisegit/TortoiseGitJp.git]
/
src
/
Utils
/
MiscUI
/
HistoryCombo.cpp
diff --git
a/src/Utils/MiscUI/HistoryCombo.cpp
b/src/Utils/MiscUI/HistoryCombo.cpp
index
ce82cd1
..
9040a5f
100644
(file)
--- a/
src/Utils/MiscUI/HistoryCombo.cpp
+++ b/
src/Utils/MiscUI/HistoryCombo.cpp
@@
-152,6
+152,8
@@
int CHistoryCombo::AddString(CString str, INT_PTR pos)
{
\r
DeleteItem(nIndex);
\r
m_arEntries.RemoveAt(nIndex);
\r
{
\r
DeleteItem(nIndex);
\r
m_arEntries.RemoveAt(nIndex);
\r
+ //nRet is now (potentially) invalid. Reset it.
\r
+ nRet = FindStringExact(0, str);
\r
}
\r
\r
//truncate list to m_nMaxHistoryItems
\r
}
\r
\r
//truncate list to m_nMaxHistoryItems
\r