Skip to content

Commit

Permalink
fix: 老版本浏览器无法打开视频链接
Browse files Browse the repository at this point in the history
修复老版本浏览器无法打开视频指南链接问题

Log: 修复老版本浏览器无法打开视频链接问题

Bug: https://pms.uniontech.com/bug-view-249541.html
  • Loading branch information
feeengli authored and deepin-bot[bot] committed Apr 10, 2024
1 parent 3c6e171 commit 269e741
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/view/manual_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <DDesktopEntry>

#include <QtGui/private/qiconloader_p.h>
#include <QDesktopServices>

ManualProxy::ManualProxy(QObject *parent)
: QObject(parent)
Expand Down Expand Up @@ -409,9 +410,7 @@ void ManualProxy::openVideo(QString url)
if(url.isEmpty()) {
url = videoUrl;
}
QProcess process;
process.startDetached("browser", QStringList(url));
process.waitForFinished();
QDesktopServices::openUrl(url);
}

/**
Expand Down

0 comments on commit 269e741

Please sign in to comment.