> I think what's happening is this. If you export pdf (say) without there > already being a pdf file there, then everything is fine. But if the pdf > file exists, then LyX will try to ask the user whether to overwrite. > This means creating a dialog as a child of the parent. But the parent, > from what I can tell, is in the main thread, and that's not allowed. > > I'll paste the full error I get below. As you'll see, LyX crashes here. > Here's the backtrace:
This makes it complicated: pass a signal via Qt::QueuedConnection to the gui thread and wait for the answer before continuing. Andre, what's the best way to wait for the answer from the gui thread, QEventLoop? Peter