This commit is contained in:
yangjiaxuan 2023-05-20 17:33:07 +08:00
parent 5f3a07cf03
commit 6935a1be37
1 changed files with 4 additions and 4 deletions

View File

@ -3733,12 +3733,12 @@ void MainWindow::on_act_device_log_triggered()
{ {
if (m_devUser != nullptr) if (m_devUser != nullptr)
{ {
QString driverLogPath = m_devUser->GetDriverLog(); QString deviceLogPath = m_devUser->GetDeviceLog();
if (!driverLogPath.isEmpty()) if (!deviceLogPath.isEmpty())
{ {
QDesktopServices::openUrl(QUrl::fromLocalFile(driverLogPath)); QDesktopServices::openUrl(QUrl::fromLocalFile(deviceLogPath));
} }
else if(driverLogPath == "Fail") else if(deviceLogPath == "Fail")
{ {
QMessageBox::information(this, tr("tips"), tr("The device does not support this operation")); QMessageBox::information(this, tr("tips"), tr("The device does not support this operation"));
} }