VCS: Preserve uncheckable files on submit editor refresh

Change-Id: I652b5a96c994a13f8d0c02d850b15c5846d56e64
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-06-14 17:51:53 +03:00
committed by Orgad Shaneh
parent 9f72e43fb1
commit fc2a5d7f50
3 changed files with 17 additions and 5 deletions

View File

@@ -61,7 +61,8 @@ public:
for (; j < source->rowCount(); ++j) {
CommitData::StateFilePair sourceStateFile = gitSource->stateFilePair(j);
if (stateFile == sourceStateFile) {
setChecked(i, source->checked(j));
if (isCheckable(i) && source->isCheckable(j))
setChecked(i, source->checked(j));
break;
} else if (stateFile < sourceStateFile) {
break;