chore: add fallback in case filemanager1 dbus failed
This commit is contained in:
parent
de394389e9
commit
51e49ab8a8
|
@ -756,6 +756,9 @@ void MainWindow::on_actionLocateInFileManager_triggered()
|
|||
QStringList{currentFileUrl.toString()},
|
||||
QString::number(QDateTime::currentSecsSinceEpoch())
|
||||
});
|
||||
if (fm1Iface.lastError().isValid()) {
|
||||
QDesktopServices::openUrl(folderUrl);
|
||||
}
|
||||
#else
|
||||
QDesktopServices::openUrl(folderUrl);
|
||||
#endif // Q_OS_WIN
|
||||
|
|
Loading…
Reference in New Issue
Block a user