Debugger: Small cleanup

Change-Id: I8586c1ae6f63edd75f8392a8e524e8197a7a72e8
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Tobias Hunger
2013-11-13 13:36:08 +01:00
committed by hjk
parent 4a71685c6c
commit 1834c34664

View File

@@ -347,13 +347,10 @@ void DebuggerOptionsPage::updateState()
if (!m_cloneButton)
return;
bool canCopy = false;
bool canDelete = false;
DebuggerItem item = m_model->currentDebugger();
canCopy = item.isValid() && item.canClone();
canDelete = m_model->currentIndex().parent().isValid() && !item.isAutoDetected();
bool canCopy = item.isValid() && item.canClone();
bool canDelete = m_model->currentIndex().parent().isValid() && !item.isAutoDetected();
m_cloneButton->setEnabled(canCopy);
m_delButton->setEnabled(canDelete);