Commit 6f7ae05d authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger
Browse files

Git: Prompt to checkout after adding a branch



Change-Id: Ifc215303f42dcba71298f906fb6d2e576d3033d3
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 93a4108a
......@@ -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();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment