# # # patch "src/view/widgets/BranchView.cpp" # from [df060172ca18afedc0ab1e936f69cfb86590d9aa] # to [8eefe13b763e5c1a645717d5a47eeb518146ae08] # ============================================================ --- src/view/widgets/BranchView.cpp df060172ca18afedc0ab1e936f69cfb86590d9aa +++ src/view/widgets/BranchView.cpp 8eefe13b763e5c1a645717d5a47eeb518146ae08 @@ -19,6 +19,8 @@ #include "BranchView.h" #include "vocab.h" +#include + BranchView::BranchView(QWidget * parent) : TreeView(parent) { setRootIsDecorated(false); @@ -73,7 +75,20 @@ void BranchView::slotContextMenuRequeste if (act == actSuspendBranch) { I(index.isValid()); - emit suspendBranch(index.data(Qt::ToolTipRole).toString()); + QString branch = index.data(Qt::ToolTipRole).toString(); + + QMessageBox::StandardButton btn = QMessageBox::question( + this, + tr("Suspend branch"), + tr("Are you sure that you want to " + "suspend the branch '%1'?").arg(branch), + QMessageBox::Yes | QMessageBox::No + ); + + if (btn == QMessageBox::No) + return; + + emit suspendBranch(branch); } else if (act == actDisplayAsTree)