forked from qt-creator/qt-creator
ProjectExplorer: Consider build environment
... in "Open Terminal Here" action in the build configuration. Change-Id: I0b1b15d4f1097cf48eb5a977f2ca5951b2f78377 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -285,7 +285,10 @@ void CorePlugin::addToPathChooserContextMenu(Utils::PathChooser *pathChooser, QM
|
||||
|
||||
auto *showInTerminal = new QAction(Core::FileUtils::msgTerminalHereAction(), menu);
|
||||
connect(showInTerminal, &QAction::triggered, pathChooser, [pathChooser]() {
|
||||
Core::FileUtils::openTerminal(pathChooser->filePath().toString());
|
||||
if (pathChooser->openTerminalHandler())
|
||||
pathChooser->openTerminalHandler()();
|
||||
else
|
||||
FileUtils::openTerminal(pathChooser->filePath().toString());
|
||||
});
|
||||
menu->insertAction(firstAction, showInTerminal);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user