解决国产系统断开usb连接,点击扫描不提示设备断开的问题;BUG-1275
This commit is contained in:
parent
b63d5d9ff5
commit
62ef2dd07f
|
@ -782,6 +782,7 @@ void MainWindow::on_AcquireInto2()
|
||||||
if (HGSANE_ERR_DEVICEOFFLINE == ret)
|
if (HGSANE_ERR_DEVICEOFFLINE == ret)
|
||||||
{
|
{
|
||||||
deviceIsOnline = false;
|
deviceIsOnline = false;
|
||||||
|
QMessageBox::information(this, tr("Prompt"), tr("Device is offline"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1536,6 +1537,7 @@ void MainWindow::on_scanFinishEvent()
|
||||||
if (HGSANE_ERR_DEVICEOFFLINE == ret)
|
if (HGSANE_ERR_DEVICEOFFLINE == ret)
|
||||||
{
|
{
|
||||||
deviceIsOnline = false;
|
deviceIsOnline = false;
|
||||||
|
QMessageBox::information(this, tr("Prompt"), tr("Device is offline"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -3740,6 +3742,7 @@ void MainWindow::on_act_acquire_triggered()
|
||||||
if (HGSANE_ERR_DEVICEOFFLINE == ret)
|
if (HGSANE_ERR_DEVICEOFFLINE == ret)
|
||||||
{
|
{
|
||||||
deviceIsOnline = false;
|
deviceIsOnline = false;
|
||||||
|
QMessageBox::information(this, tr("Prompt"), tr("Device is offline"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -3872,6 +3875,7 @@ void MainWindow::on_act_acquireInto_triggered()
|
||||||
if (HGSANE_ERR_DEVICEOFFLINE == ret)
|
if (HGSANE_ERR_DEVICEOFFLINE == ret)
|
||||||
{
|
{
|
||||||
deviceIsOnline = false;
|
deviceIsOnline = false;
|
||||||
|
QMessageBox::information(this, tr("Prompt"), tr("Device is offline"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -3960,6 +3964,7 @@ void MainWindow::on_act_insertFromScanner_triggered()
|
||||||
if (HGSANE_ERR_DEVICEOFFLINE == ret)
|
if (HGSANE_ERR_DEVICEOFFLINE == ret)
|
||||||
{
|
{
|
||||||
deviceIsOnline = false;
|
deviceIsOnline = false;
|
||||||
|
QMessageBox::information(this, tr("Prompt"), tr("Device is offline"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
, m_dlgScanInfo(nullptr)
|
, m_dlgScanInfo(nullptr)
|
||||||
, m_devHandle(nullptr)
|
, m_devHandle(nullptr)
|
||||||
, m_scanning(false)
|
, m_scanning(false)
|
||||||
, m_isFirstConnectServer(false)
|
, m_isFirstConnectServer(true)
|
||||||
, m_dpi(200)
|
, m_dpi(200)
|
||||||
, m_scanFileName("")
|
, m_scanFileName("")
|
||||||
, m_scanImgFmtWriter(nullptr)
|
, m_scanImgFmtWriter(nullptr)
|
||||||
|
@ -1263,10 +1263,6 @@ void MainWindow::timerEvent(QTimerEvent *e)
|
||||||
this->killTimer(m_timerId);
|
this->killTimer(m_timerId);
|
||||||
m_timerId = -1;
|
m_timerId = -1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
m_timerId = this->startTimer(5000);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue