fix: simplify openPath calls
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit 67d088dc53
)
This commit is contained in:
parent
8dd898f895
commit
fec1a00dc8
@ -1437,7 +1437,7 @@ void MainWindow::on_actionViewSelectedInstFolder_triggered()
|
|||||||
{
|
{
|
||||||
if (m_selectedInstance) {
|
if (m_selectedInstance) {
|
||||||
QString str = m_selectedInstance->instanceRoot();
|
QString str = m_selectedInstance->instanceRoot();
|
||||||
DesktopServices::openPath(QDir(str).absolutePath());
|
DesktopServices::openPath(QFileInfo(str));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -324,8 +324,7 @@ void ScreenshotsPage::onItemActivated(QModelIndex index)
|
|||||||
if (!index.isValid())
|
if (!index.isValid())
|
||||||
return;
|
return;
|
||||||
auto info = m_model->fileInfo(index);
|
auto info = m_model->fileInfo(index);
|
||||||
QString fileName = info.absoluteFilePath();
|
DesktopServices::openPath(info);
|
||||||
DesktopServices::openPath(info.absoluteFilePath());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenshotsPage::onCurrentSelectionChanged(const QItemSelection& selected)
|
void ScreenshotsPage::onCurrentSelectionChanged(const QItemSelection& selected)
|
||||||
|
Loading…
Reference in New Issue
Block a user