diff options
author | hjk <[email protected]> | 2024-10-22 09:29:39 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2024-10-22 12:02:08 +0000 |
commit | 53fe7d704c6c6d43de28f1b15b73f1c1e13742f8 (patch) | |
tree | ef9bc9b780ba8aa82d5fe796d5618e061ded41c0 /src/libs/utils/terminalhooks.cpp | |
parent | 739cd306306adae165c1ee15bdc261a669c66790 (diff) |
Utils: Remove access to DeviceFileHooks singleton
Re-route through FilePath instead. Not exactly the right place to
talk about terminals, but practically not abusable.
Change-Id: I55d7747329d120a0d3218c031e749fb0f4dae143
Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'src/libs/utils/terminalhooks.cpp')
-rw-r--r-- | src/libs/utils/terminalhooks.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libs/utils/terminalhooks.cpp b/src/libs/utils/terminalhooks.cpp index 3e5151e6f39..0084121bce9 100644 --- a/src/libs/utils/terminalhooks.cpp +++ b/src/libs/utils/terminalhooks.cpp @@ -38,9 +38,8 @@ public: HooksPrivate() { auto openTerminal = [](const OpenTerminalParameters ¶meters) { - DeviceFileHooks::instance().openTerminal(parameters.workingDirectory.value_or( - FilePath{}), - parameters.environment.value_or(Environment{})); + parameters.workingDirectory.value_or(FilePath{}) + .openTerminal(parameters.environment.value_or(Environment{})); }; auto createProcessInterface = [] { return new ExternalTerminalProcessImpl; }; |