Git: Prompt to checkout after adding a branch

Change-Id: Ifc215303f42dcba71298f906fb6d2e576d3033d3
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Orgad Shaneh
2012-06-03 23:06:44 +03:00
committed by Tobias Hunger
parent 93a4108a0d
commit 6f7ae05d69

View File

@@ -146,6 +146,9 @@ void BranchDialog::add()
| QItemSelectionModel::Select
| QItemSelectionModel::Current);
m_ui->branchView->scrollTo(idx);
if (QMessageBox::question(this, tr("Checkout"), tr("Checkout branch?"),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes)
checkout();
}
}