This commit is contained in:
parent
5f3a07cf03
commit
6935a1be37
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue