From 255c5799f2cf00318df1aca84072bbee24eb2736 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 26 Jul 2011 12:32:13 +0000 Subject: [PATCH] Git: Fix assert Refresh button states after running a checkout: The operation changes the currently active branch and thus needs to disable e.g. the remove action. Change-Id: Id060ec63dbcf3c3132a832c2801073df5f9e91f1 Reviewed-on: http://codereview.qt.nokia.com/2195 Reviewed-by: Qt Sanity Bot Reviewed-by: Fawzi Mohamed --- src/plugins/git/branchdialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/git/branchdialog.cpp b/src/plugins/git/branchdialog.cpp index cb57a34417c..2efb2450229 100644 --- a/src/plugins/git/branchdialog.cpp +++ b/src/plugins/git/branchdialog.cpp @@ -154,6 +154,7 @@ void BranchDialog::checkout() Q_ASSERT(m_model->isLocal(idx)); m_model->checkoutBranch(idx); + enableButtons(); } /* Prompt to delete a local branch and do so. */