PythonEditor: Fix history completer for interpreter

Change-Id: I14e67e585e06adc926b052b625701b3fbe7fca94
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2018-05-09 13:53:41 +02:00
parent 9d33acfe88
commit 9ebfda4c03

View File

@@ -256,6 +256,7 @@ PythonRunConfiguration::PythonRunConfiguration(Target *target, Core::Id id)
interpreterAspect->setSettingsKey("PythonEditor.RunConfiguation.Interpreter");
interpreterAspect->setLabelText(tr("Interpreter:"));
interpreterAspect->setDisplayStyle(BaseStringAspect::PathChooserDisplay);
interpreterAspect->setHistoryCompleter("PythonEditor.Interpreter.History");
interpreterAspect->setValue(exec.isEmpty() ? "python" : exec);
addExtraAspect(interpreterAspect);