mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -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:
@@ -74,6 +74,7 @@ void TextCtrl::setValue(const FakeTextValueP& value) {
|
||||
}
|
||||
|
||||
void TextCtrl::onChangeSet() {
|
||||
wxLogDebug(_("TextCtrl::onChangeSet %p"),this);
|
||||
DataEditor::onChangeSet();
|
||||
// initialize
|
||||
if (viewers.empty()) {
|
||||
@@ -109,6 +110,8 @@ void TextCtrl::onInit() {
|
||||
FOR_EACH_EDITOR {
|
||||
e->onShow(true);
|
||||
}
|
||||
// also init the DataEditor
|
||||
DataEditor::onInit();
|
||||
}
|
||||
|
||||
void TextCtrl::onSize(wxSizeEvent&) {
|
||||
|
||||
Reference in New Issue
Block a user