forked from qt-creator/qt-creator
Git: Prompt to checkout after adding a branch
Change-Id: Ifc215303f42dcba71298f906fb6d2e576d3033d3 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
93a4108a0d
commit
6f7ae05d69
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user