展示的错误信息,由判断字符串改为通过底层sane返回值判断
This commit is contained in:
parent
4f4c370933
commit
662cf18938
|
@ -150,7 +150,7 @@ void Dialog_progress_ui::FuncNotify(int event, void *msg, int flag)
|
|||
case SANE_EVENT_WORKING:
|
||||
{
|
||||
QString finishInfo;
|
||||
if (msg != nullptr)
|
||||
if (0 != flag)
|
||||
{
|
||||
finishInfo = (char*)msg;
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ void Dialog_progress_ui::FuncNotify(int event, void *msg, int flag)
|
|||
case SANE_EVENT_SCAN_FINISHED:
|
||||
{
|
||||
QString finishInfo;
|
||||
if (msg != nullptr)
|
||||
if (0 != flag)
|
||||
{
|
||||
finishInfo = (char*)msg;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue