danders added a comment.
I think the problem is that slotFilePrint() is called (in KoApplication::start()) before the document is actually loaded. Probably we need to start printing in a slot connected to KoMainWindow::loadCompleted() instead. And to be safe, we also need to handle loadCanceled(). And the same for exportToPdf, I think. REPOSITORY R8 Calligra REVISION DETAIL https://phabricator.kde.org/D18466 To: niccolove, danders Cc: boemann, Calligra-Devel-list, dcaliste, cochise, vandenoever