forked from qt-creator/qt-creator
Debugger: Disable 'Remove' button for the category headers
Change-Id: Ice56ff3291411f4c740af3cc812313ddb99d7d71 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -334,7 +334,7 @@ void DebuggerOptionsPage::updateState()
|
||||
DebuggerItem item = m_model->currentDebugger();
|
||||
|
||||
canCopy = item.isValid() && item.canClone();
|
||||
canDelete = !item.isAutoDetected();
|
||||
canDelete = m_model->currentIndex().parent().isValid() && !item.isAutoDetected();
|
||||
|
||||
m_cloneButton->setEnabled(canCopy);
|
||||
m_delButton->setEnabled(canDelete);
|
||||
|
||||
Reference in New Issue
Block a user