forked from qt-creator/qt-creator
Debugger: Small cleanup
Change-Id: I8586c1ae6f63edd75f8392a8e524e8197a7a72e8 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user