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 <qt_sanity_bot@ovi.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
Tobias Hunger
2011-07-26 12:32:13 +00:00
committed by Fawzi Mohamed
parent 945b5f9a03
commit 255c5799f2

View File

@@ -154,6 +154,7 @@ void BranchDialog::checkout()
Q_ASSERT(m_model->isLocal(idx)); Q_ASSERT(m_model->isLocal(idx));
m_model->checkoutBranch(idx); m_model->checkoutBranch(idx);
enableButtons();
} }
/* Prompt to delete a local branch and do so. */ /* Prompt to delete a local branch and do so. */