forked from qt-creator/qt-creator
Utils: Use FilePath in FileUtils::showInGraphicalShell
Change-Id: I393f33a6a31fc6cee3c0a4b16c474247673af312 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -327,7 +327,7 @@ void CorePlugin::addToPathChooserContextMenu(Utils::PathChooser *pathChooser, QM
|
||||
if (QDir().exists(pathChooser->filePath().toString())) {
|
||||
auto *showInGraphicalShell = new QAction(Core::FileUtils::msgGraphicalShellAction(), menu);
|
||||
connect(showInGraphicalShell, &QAction::triggered, pathChooser, [pathChooser]() {
|
||||
Core::FileUtils::showInGraphicalShell(pathChooser, pathChooser->filePath().toString());
|
||||
Core::FileUtils::showInGraphicalShell(pathChooser, pathChooser->filePath());
|
||||
});
|
||||
menu->insertAction(firstAction, showInGraphicalShell);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user