Fix export bar without opened diagram
Merge branch 'master' into 'Hibernate4'