mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fixed crash in TextCtrl;
No longer ask to save set when it is still open in another window. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@862 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -437,14 +437,14 @@ void SetWindow::updateRecentSets() {
|
||||
|
||||
|
||||
void SetWindow::onFileNew(wxCommandEvent&) {
|
||||
if (!askSaveAndContinue()) return;
|
||||
if (isOnlyWithSet() && !askSaveAndContinue()) return;
|
||||
// new set?
|
||||
SetP new_set = new_set_window(this);
|
||||
if (new_set) setSet(new_set);
|
||||
}
|
||||
|
||||
void SetWindow::onFileOpen(wxCommandEvent&) {
|
||||
if (!askSaveAndContinue()) return;
|
||||
if (isOnlyWithSet() && !askSaveAndContinue()) return;
|
||||
wxFileDialog dlg(this, _TITLE_("open set"), _(""), _(""), import_formats(), wxOPEN);
|
||||
if (dlg.ShowModal() == wxID_OK) {
|
||||
wxBusyCursor busy;
|
||||
|
||||
Reference in New Issue
Block a user