Commit ef464a4e authored by coppro's avatar coppro

Fixed install script and set selection window crash.

parent 4c24a283
...@@ -3030,8 +3030,6 @@ else ...@@ -3030,8 +3030,6 @@ else
fi fi
# Do not pass -O2, because that causes failures for now.
CXXFLAGS=-g
# Checks for libraries. # Checks for libraries.
ac_ext=c ac_ext=c
ac_cpp='$CPP $CPPFLAGS' ac_cpp='$CPP $CPPFLAGS'
......
...@@ -97,11 +97,11 @@ void WelcomeWindow::draw(DC& dc) { ...@@ -97,11 +97,11 @@ void WelcomeWindow::draw(DC& dc) {
} }
void WelcomeWindow::onOpenSet(wxCommandEvent&) { void WelcomeWindow::onOpenSet(wxCommandEvent&) {
wxFileDialog dlg(this, _TITLE_("open set"), settings.default_set_dir, wxEmptyString, import_formats(), wxOPEN); wxFileDialog* dlg = new wxFileDialog(this, _TITLE_("open set"), settings.default_set_dir, wxEmptyString, import_formats(), wxOPEN);
if (dlg.ShowModal() == wxID_OK) { if (dlg->ShowModal() == wxID_OK) {
settings.default_set_dir = dlg.GetDirectory(); settings.default_set_dir = dlg->GetDirectory();
wxBusyCursor wait; wxBusyCursor wait;
close(import_set(dlg.GetPath())); close(import_set(dlg->GetPath()));
} }
} }
......
...@@ -15,14 +15,7 @@ case $UID in ...@@ -15,14 +15,7 @@ case $UID in
*) *)
INSTALL_DIR='$HOME/.magicseteditor/'; INSTALL_DIR='$HOME/.magicseteditor/';
EXEC_SYMLINK='$HOME/bin/magicseteditor'; EXEC_SYMLINK='$HOME/bin/magicseteditor';
esac esac;
if [ \"$MSE_INSTALL_DIR\" != "" ] then
INSTALL_DIR=$MSE_INSTALL_DIR
fi
if [ \"$MSE_EXEC_SYMLINK\" != "" ] then
INSTALL_DIR=$MSE_EXEC_SYMLINK
fi
echo "Magic Set Editor version $VERSION Installer Script. echo "Magic Set Editor version $VERSION Installer Script.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment