Select "Uncommitted changes" after "Pop Stash"

This commit is contained in:
Silvan Forrer 2024-03-23 21:49:40 +01:00 committed by Martin Marmsoler
parent 659776f938
commit 1cb74d17e1

View File

@ -2141,10 +2141,8 @@ void RepoView::popStash(int index) {
error(entry, tr("pop stash"), commit.link());
return;
}
if (mRepo.stashes().size() == 0) {
// switch back to head when there are no stashes left
mCommits->setReference(mRepo.head());
}
// switch back to head
selectReference(mRepo.head());
}
void RepoView::promptToAddTag(const git::Commit &commit) {