fix: simplify openPath calls

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit 67d088dc53)
This commit is contained in:
Sefa Eyeoglu 2024-01-14 11:36:17 +01:00 committed by github-actions[bot]
parent 8dd898f895
commit fec1a00dc8
2 changed files with 2 additions and 3 deletions

View file

@ -1437,7 +1437,7 @@ void MainWindow::on_actionViewSelectedInstFolder_triggered()
{
if (m_selectedInstance) {
QString str = m_selectedInstance->instanceRoot();
DesktopServices::openPath(QDir(str).absolutePath());
DesktopServices::openPath(QFileInfo(str));
}
}