From f12bb8b99a088e51dd853d6d4e28bd84c32eaf7f Mon Sep 17 00:00:00 2001 From: Theodore Turocy Date: Mon, 16 Mar 2026 12:52:09 +0000 Subject: [PATCH] Remove duplicate dialogs on attempting to load bad files from command line. --- src/gui/app.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/gui/app.cc b/src/gui/app.cc index e7fc195ba..2aa73677b 100644 --- a/src/gui/app.cc +++ b/src/gui/app.cc @@ -83,15 +83,7 @@ wxBEGIN_EVENT_TABLE(Application, wxApp) EVT_TIMER(wxID_ANY, Application::OnSplas // Process command line arguments, if any. for (int i = 1; i < argc; i++) { - const AppLoadResult result = LoadFile(argv[i], nullptr); - if (result == GBT_APP_OPEN_FAILED) { - wxMessageBox(wxString::Format(_("Gambit could not open file for reading:\n%s"), argv[i]), - _("Unable to open file"), wxOK | wxICON_ERROR, nullptr); - } - else if (result == GBT_APP_PARSE_FAILED) { - wxMessageBox(wxString::Format(_("File is not in a format Gambit recognizes:\n%s"), argv[i]), - _("Unable to read file"), wxOK | wxICON_ERROR, nullptr); - } + LoadFile(argv[i], nullptr); } if (m_documents.empty()) {