From fb2fd513be2ee108ead256bbf1aad26e32e507c5 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Mon, 15 Jan 2024 14:24:19 +0100 Subject: [PATCH] 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: Reviewed-by: Christian Stenger --- src/plugins/python/pythonsettings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp index 7d0acd72715..16d800b9316 100644 --- a/src/plugins/python/pythonsettings.cpp +++ b/src/plugins/python/pythonsettings.cpp @@ -572,6 +572,7 @@ void InterpreterOptionsWidget::generateKit() const QModelIndex &index = m_view->currentIndex(); if (index.isValid()) PythonSettings::addKitsForInterpreter(m_model.itemAt(index.row())->itemData); + m_generateKitButton->setEnabled(false); } void InterpreterOptionsWidget::cleanUp()