From 6d9cbaaec0d7e93c797d00cf84a87281cf8f1656 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 10 May 2017 18:52:49 -0700 Subject: [PATCH] Add IOException type write protection check per recent forum thread --- PKHeX.WinForms/MainWindow/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.WinForms/MainWindow/Main.cs b/PKHeX.WinForms/MainWindow/Main.cs index 8319db6a6..d48873a9f 100644 --- a/PKHeX.WinForms/MainWindow/Main.cs +++ b/PKHeX.WinForms/MainWindow/Main.cs @@ -3424,7 +3424,7 @@ private void clickExportSAV(object sender, EventArgs e) } catch (Exception x) { - if (x is UnauthorizedAccessException || x is FileNotFoundException) + if (x is UnauthorizedAccessException || x is FileNotFoundException || x is IOException) WinFormsUtil.Error("Unable to save." + Environment.NewLine + x.Message, "If destination is a removable disk (SD card), please ensure the write protection switch is not set."); else throw;