Skip to content

Commit

Permalink
Fix not able to create branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Waqar144 committed Feb 28, 2025
1 parent d8cfb22 commit 2560600
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/project/branchcheckoutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ void BranchCheckoutDialog::onCheckoutDone()

void BranchCheckoutDialog::slotReturnPressed(const QModelIndex &index)
{
deleteLater();
// we cleared the model to checkout new branch
if (m_model->rowCount() == 0) {
createNewBranch(m_lineEdit.text(), m_checkoutFromBranchName);
return;
}

if (!index.isValid()) {
deleteLater();
clearLineEdit();
hide();
return;
Expand Down Expand Up @@ -104,6 +104,7 @@ void BranchCheckoutDialog::slotReturnPressed(const QModelIndex &index)
return;
}

deleteLater();
clearLineEdit();
hide();
}
Expand Down

0 comments on commit 2560600

Please sign in to comment.