Skip to content

Commit

Permalink
Fix probelm when saving molecules table where backing model does not …
Browse files Browse the repository at this point in the history
…support save
  • Loading branch information
goglepox committed May 17, 2013
1 parent 5cd6b06 commit dc582ff
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -234,10 +234,14 @@ public void doSave( IProgressMonitor monitor ) {
if(model instanceof IFileMoleculesEditorModel) {
save(model,((IFileMoleculesEditorModel) model).getResource());
}else {
try{
model.save();
jcpPage.getWidget().setDirty( false );
this.moleculesPage.setDirty( false );
setDirty( false );
} catch (UnsupportedOperationException e) {
doSaveAs();
}
}
}

Expand Down

0 comments on commit dc582ff

Please sign in to comment.