Check that list is not empty before accessing it
commitb808dcd6e35a8c3985428ba6385d760d117fa6cb
authorSven Strickroth <email@cs-ware.de>
Fri, 30 Jun 2017 17:13:51 +0000 (30 19:13 +0200)
committerSven Strickroth <email@cs-ware.de>
Fri, 30 Jun 2017 19:05:39 +0000 (30 21:05 +0200)
tree21a69f6ac1d433080042e02cb858a6424420dded
parent68f6bf8ba6e4ba2da6b8e803d62fcf59b11e4e9a
Check that list is not empty before accessing it

I've seen crash reports for this, but according to the logic in LogDlg it should not be possible as the OK button is disabled as long as nothing is selected.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
src/TortoiseProc/BisectStartDlg.cpp
src/TortoiseProc/ChooseVersion.h
src/TortoiseProc/CommitDlg.cpp
src/TortoiseProc/FormatPatchDlg.cpp
src/TortoiseProc/PushDlg.cpp
src/TortoiseProc/RebaseDlg.cpp
src/TortoiseProc/RepositoryBrowser.cpp
src/TortoiseProc/RequestPullDlg.cpp