forked from qt-creator/qt-creator
Python: reduce freezes in settings page with remote interpreter
Do not check the existence of remote interpreters when opening the settingspage since we could run into device timeouts for unreachable devices. Change-Id: I5d0d1316961fc4ecbd2be55f6df70091ff65ecd5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -170,6 +170,8 @@ InterpreterOptionsWidget::InterpreterOptionsWidget()
|
||||
return f;
|
||||
}
|
||||
case Qt::ToolTipRole:
|
||||
if (interpreter.command.needsDevice())
|
||||
break;
|
||||
if (interpreter.command.isEmpty())
|
||||
return Tr::tr("Executable is empty.");
|
||||
if (!interpreter.command.exists())
|
||||
@@ -179,6 +181,8 @@ InterpreterOptionsWidget::InterpreterOptionsWidget()
|
||||
.arg(interpreter.command.toUserOutput());
|
||||
break;
|
||||
case Qt::DecorationRole:
|
||||
if (interpreter.command.needsDevice())
|
||||
break;
|
||||
if (column == 0 && !interpreter.command.isExecutableFile())
|
||||
return Utils::Icons::CRITICAL.icon();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user