The plugin should either raise an exception or return the original file path on failure.
Make your message box non modal, it will then not interrupt the adding process and will still be there when the adding dialog closes.
EDIT: Actually, no that wont work, since the message box is cerated ina separate process that dies after adding is done
Instead you can try calling
self.raise_()
Last edited by kovidgoyal; 02-17-2010 at 01:58 PM.
|