Commit ef464a4e authored by coppro's avatar coppro

Fixed install script and set selection window crash.

parent 4c24a283
......@@ -3030,8 +3030,6 @@ else
fi
# Do not pass -O2, because that causes failures for now.
CXXFLAGS=-g
# Checks for libraries.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
......
......@@ -97,11 +97,11 @@ void WelcomeWindow::draw(DC& dc) {
}
void WelcomeWindow::onOpenSet(wxCommandEvent&) {
wxFileDialog dlg(this, _TITLE_("open set"), settings.default_set_dir, wxEmptyString, import_formats(), wxOPEN);
if (dlg.ShowModal() == wxID_OK) {
settings.default_set_dir = dlg.GetDirectory();
wxFileDialog* dlg = new wxFileDialog(this, _TITLE_("open set"), settings.default_set_dir, wxEmptyString, import_formats(), wxOPEN);
if (dlg->ShowModal() == wxID_OK) {
settings.default_set_dir = dlg->GetDirectory();
wxBusyCursor wait;
close(import_set(dlg.GetPath()));
close(import_set(dlg->GetPath()));
}
}
......
......@@ -15,14 +15,7 @@ case $UID in
*)
INSTALL_DIR='$HOME/.magicseteditor/';
EXEC_SYMLINK='$HOME/bin/magicseteditor';
esac
if [ \"$MSE_INSTALL_DIR\" != "" ] then
INSTALL_DIR=$MSE_INSTALL_DIR
fi
if [ \"$MSE_EXEC_SYMLINK\" != "" ] then
INSTALL_DIR=$MSE_EXEC_SYMLINK
fi
esac;
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