Fix crash after cancellation code.

I thought we didn't use clones when exporting from the command line.
We probably shouldn't.
This commit is contained in:
Richard Heck 2017-12-24 11:17:50 -05:00
parent ffd1e932e2
commit 61b1a20185

View File

@ -403,7 +403,7 @@ void SystemcallPrivate::startProcess(QString const & cmd, string const & path,
bool SystemcallPrivate::waitAndCheck()
{
Sleep::millisec(100);
if (theApp()->cancel_export) {
if (theApp() && theApp()->cancel_export) {
// is there a better place to reset this?
process_->kill();
state = Killed;