forked from qt-creator/qt-creator
Python: disable generateKit button after clicking
The button should only be enabled if no kit can be associated with the currently selected python interpreter. Change-Id: I0357bf999c8abd2bc11b4ac5b2e79a10a0d94f01 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -572,6 +572,7 @@ void InterpreterOptionsWidget::generateKit()
|
|||||||
const QModelIndex &index = m_view->currentIndex();
|
const QModelIndex &index = m_view->currentIndex();
|
||||||
if (index.isValid())
|
if (index.isValid())
|
||||||
PythonSettings::addKitsForInterpreter(m_model.itemAt(index.row())->itemData);
|
PythonSettings::addKitsForInterpreter(m_model.itemAt(index.row())->itemData);
|
||||||
|
m_generateKitButton->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InterpreterOptionsWidget::cleanUp()
|
void InterpreterOptionsWidget::cleanUp()
|
||||||
|
|||||||
Reference in New Issue
Block a user