HGGitLab

Commit 1d9940a1 authored by luoliangyi's avatar luoliangyi

打开sane设备失败,弹出日志框

parent 6512d813
...@@ -731,7 +731,10 @@ void MainWindow::on_sane_dev_remove(QString devName) ...@@ -731,7 +731,10 @@ void MainWindow::on_sane_dev_remove(QString devName)
void MainWindow::on_sane_dev_error(QString errorInfo) void MainWindow::on_sane_dev_error(QString errorInfo)
{ {
//Error codes operate in slot function: on_scan_finish(QString finishInfo, int err). //Error codes operate in slot function: on_scan_finish(QString finishInfo, int err).
(void)errorInfo;
m_wndStatusBar->setDeviceStatusInfo(errorInfo, true);
m_dialogLog->addLog(errorInfo, true);
HGBase_WriteInfo(HGBASE_INFOTYPE_ERROR, "%s", getStdString(errorInfo).c_str());
} }
void MainWindow::on_new_image(void *img) void MainWindow::on_new_image(void *img)
...@@ -2447,7 +2450,8 @@ void MainWindow::on_scanOptions_changed(const QString &device, const QString &op ...@@ -2447,7 +2450,8 @@ void MainWindow::on_scanOptions_changed(const QString &device, const QString &op
schm = &(*it); schm = &(*it);
if(cur_dev_.name() != device.toStdString()) if(cur_dev_.name() != device.toStdString())
{ {
open_scanner(device, schm); if(!open_scanner(device, schm))
m_dialogLog->show();
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment