Skip to content

Commit

Permalink
Merge pull request #2 from ajlyon/fodt
Browse files Browse the repository at this point in the history
Don't warn on save to .fodt
  • Loading branch information
simonster committed Nov 1, 2011
2 parents 4a88cc4 + d0b7650 commit f0757b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void notifyEvent(EventObject event) {
// check if document is saved in OpenDocument format
XModel component = (XModel) UnoRuntime.queryInterface(XModel.class, event.Source);
String docURL = component.getURL();
if(docURL.endsWith(".odt") || docURL.endsWith(".oxt") || docURL.endsWith(".sxw")) return;
if(docURL.endsWith(".odt") || docURL.endsWith(".oxt") || docURL.endsWith(".sxw") || docURL.endsWith(".fodt")) return;

// if not, complain
XFrame frame = Application.desktop.getCurrentFrame();
Expand Down

0 comments on commit f0757b1

Please sign in to comment.