use KXMLGUIClient to enable/diable actions depended on document type. fix assertion failure after reindexing