Commit 2d5b181c by Carwyn

1. 打印模块加载失败时测试打印崩溃问题

parent b1018e6d
......@@ -350,7 +350,11 @@ void MainWindow::showMain()
}
else
{
this->showFullScreen();
#ifdef QT_DEBUG
show();
#else
this->showFullScreen();
#endif
}
}
void MainWindow::OnshowMainUi()
......
......@@ -92,7 +92,9 @@ void FMPTakeoutPrivate::sltStopBlink(int type)
void FMPTakeoutPrivate::sltPrint(QString data)
{
emit sgnReceiveStatus(_Printer->DoPrint(data));
if (_Printer) {
emit sgnReceiveStatus(_Printer->DoPrint(data));
}
}
void FMPTakeoutPrivate::sltPrintName()
......
No preview for this file type
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