78 |
import org.jsampler.view.LscpFileFilter; |
import org.jsampler.view.LscpFileFilter; |
79 |
|
|
80 |
import org.jsampler.view.std.JSDetailedErrorDlg; |
import org.jsampler.view.std.JSDetailedErrorDlg; |
81 |
|
import org.jsampler.view.std.JSQuitDlg; |
82 |
import org.jsampler.view.std.JSamplerHomeChooser; |
import org.jsampler.view.std.JSamplerHomeChooser; |
83 |
|
|
84 |
import static org.jsampler.view.fantasia.A4n.a4n; |
import static org.jsampler.view.fantasia.A4n.a4n; |
236 |
/** Invoked when this window is about to close. */ |
/** Invoked when this window is about to close. */ |
237 |
protected void |
protected void |
238 |
onWindowClose() { |
onWindowClose() { |
239 |
|
if(CC.getSamplerModel().isModified()) { |
240 |
|
JSQuitDlg dlg = new JSQuitDlg(Res.iconQuestion32); |
241 |
|
dlg.setVisible(true); |
242 |
|
if(dlg.isCancelled()) return; |
243 |
|
} |
244 |
|
|
245 |
sidePane.savePreferences(); |
sidePane.savePreferences(); |
246 |
|
|
247 |
int i = hSplitPane.getDividerLocation(); |
int i = hSplitPane.getDividerLocation(); |