OpenDocument handling tweaked on PyQt4.