Qt: Fix printing race conditions
Vicki Pfau vi@endrift.com
Tue, 10 Oct 2017 22:30:28 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
M
src/platform/qt/CoreController.cpp
→
src/platform/qt/CoreController.cpp
@@ -640,6 +640,7 @@ }
} QMetaObject::invokeMethod(qPrinter->parent, "imagePrinted", Q_ARG(const QImage&, image)); }; + Interrupter interrupter(this); GBSIOSetDriver(&gb->sio, &m_printer.d.d); #endif }@@ -649,6 +650,7 @@ #ifdef M_CORE_GB
if (platform() != PLATFORM_GB) { return; } + Interrupter interrupter(this); GB* gb = static_cast<GB*>(m_threadContext.core->board); GBPrinterDonePrinting(&m_printer.d); GBSIOSetDriver(&gb->sio, nullptr);@@ -660,6 +662,7 @@ #ifdef M_CORE_GB
if (platform() != PLATFORM_GB) { return; } + Interrupter interrupter(this); GBPrinterDonePrinting(&m_printer.d); #endif }