ProjectExplorer: Let user provide default for "run in terminal"

We enable the "Run in terminal" checkbox for all applications that
declare themselves console apps, but that's not necessarily what the
user wants. So let them opt out of this mechanism via a global setting.

[ChangeLog] There now is a global setting for "Run in terminal".

Change-Id: Ieeed72fdd01144d9aec0a7c7d4a12b9e5a94cd1d
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-03-12 15:19:56 +01:00
parent a6f0e564d4
commit 8c0037af52
9 changed files with 199 additions and 123 deletions

View File

@@ -84,8 +84,7 @@ void CMakeRunConfiguration::updateTargetInformation()
aspect<LocalEnvironmentAspect>()->buildEnvironmentHasChanged();
auto terminalAspect = aspect<TerminalAspect>();
if (!terminalAspect->isUserSet())
terminalAspect->setUseTerminal(bti.usesTerminal);
terminalAspect->setUseTerminalHint(bti.usesTerminal);
}
// Factory