fix: locate file in files view should show files view in the left panel

This commit is contained in:
royqh1979@gmail.com 2021-10-22 16:48:19 +08:00
parent 9d829876b3
commit 24c2262c95
1 changed files with 2 additions and 0 deletions

View File

@ -4680,6 +4680,8 @@ void MainWindow::on_actionLocate_in_Files_View_triggered()
if (!fileDir.isEmpty()) { if (!fileDir.isEmpty()) {
setFilesViewRoot(fileDir); setFilesViewRoot(fileDir);
ui->treeFiles->setCurrentIndex(mFileSystemModel.index(editor->filename())); ui->treeFiles->setCurrentIndex(mFileSystemModel.index(editor->filename()));
ui->tabInfos->setCurrentWidget(ui->tabFiles);
openCloseLeftPanel(true);
} }
} }
} }