diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp index 03957717..494d4f63 100644 --- a/app/scanner/mainwindow.cpp +++ b/app/scanner/mainwindow.cpp @@ -3733,12 +3733,12 @@ void MainWindow::on_act_device_log_triggered() { if (m_devUser != nullptr) { - QString driverLogPath = m_devUser->GetDriverLog(); - if (!driverLogPath.isEmpty()) + QString deviceLogPath = m_devUser->GetDeviceLog(); + 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")); }