leo wrote:I'm saying, IMO, you should make it modal, the same as SCV does. The way SCV does this seems fine to me.
Ok, I misunderstood you. I already made it modal, but that causes the problems I mentioned.
leo wrote:When I said making it modeless would take a lot of work I meant it would take a lot of work making it work with the Opus plugin architecture since you'd have to spawn your own UI thread (or even process if you want the "Do you wish to save?" message to work when Opus is shutting down) which doesn't seem worth it in this case.
Okay, this sounds plausible.
leo wrote:Or does the way SCV does it actually break something?
Yes, it breaks like the RTFViewer does.
leo wrote:Maybe I've misunderstood but I thought that if you closed SCV it would ask you if you want to save and you can then click yes or no and it then closes, saving if you asked it to.
I open SCV (or even the RTFViewer) in the viewer-pane, edit the file, and close the viewer-pane.
Now SCV (or RTFV) asks me whether to save the changes or not. But I am not able to make my choice, because DOpus hangs up.
If I close DOpus completely (TrayIcon -> Exit) I am able to make my choice and SCV (or RTFV) saves the changes correctly.
When I open SCV (or RTFV) in standalone mode instead of the viewer-pane everything works fine.