From a4257283cc708f3bda4b8f78fbf56c418d33f312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Mon, 12 Sep 2022 10:57:23 -0300 Subject: [PATCH] ecode: Fix GlobalSearchLayout and execute_dir_in_terminal. --- src/tools/ecode/ecode.cpp | 2 +- src/tools/ecode/globalsearchcontroller.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/ecode/ecode.cpp b/src/tools/ecode/ecode.cpp index ffb8c4e3b..c024dbba7 100644 --- a/src/tools/ecode/ecode.cpp +++ b/src/tools/ecode/ecode.cpp @@ -3037,7 +3037,7 @@ void App::createProjectTreeMenu() { } else if ( "open_folder" == id ) { Engine::instance()->openURI( mCurrentProject ); } else if ( "execute_dir_in_terminal" == id ) { - mTerminalManager->createNewTerminal(); + mTerminalManager->createNewTerminal( "", nullptr, mCurrentProject ); } else if ( "show_hidden_files" == id ) { toggleHiddenFiles(); } else if ( "collapse-all" == id ) { diff --git a/src/tools/ecode/globalsearchcontroller.cpp b/src/tools/ecode/globalsearchcontroller.cpp index 76a7742c8..719b665f9 100644 --- a/src/tools/ecode/globalsearchcontroller.cpp +++ b/src/tools/ecode/globalsearchcontroller.cpp @@ -189,7 +189,7 @@ void GlobalSearchController::initGlobalSearchBar( addClickListener( searchClearHistory, "global-search-clear-history" ); mGlobalSearchLayout = mUISceneNode ->loadLayoutFromString( R"xml( - +