From 52a2316934299346e0e3fad60da00ba36f812754 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 29 Oct 2011 04:30:58 +0000 Subject: [PATCH] Don't display an error message if the user cancels audio loading Originally committed to SVN as r5803. --- aegisub/src/command/audio.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/aegisub/src/command/audio.cpp b/aegisub/src/command/audio.cpp index 6dc80382e..e2d9b68bf 100644 --- a/aegisub/src/command/audio.cpp +++ b/aegisub/src/command/audio.cpp @@ -102,6 +102,7 @@ struct audio_open : public Command { OPT_SET("Path/Last/Audio")->SetString(STD_STR(filename)); } } + catch (agi::UserCancelException const&) { } catch (agi::Exception const& e) { wxMessageBox(lagi_wxString(e.GetChainedMessage()), "Error loading file", wxICON_ERROR | wxOK); }