From 53e046fd7fa8e96caf4bab47dc35fa704a36f0d5 Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Wed, 6 Apr 2016 18:36:10 -0700 Subject: [PATCH] Disallow exporting backup if sav is not exportable CTRL-B could bypass the 'export' option being disabled. --- PKX/f1-Main.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs index 8901194b6..0f2052f21 100644 --- a/PKX/f1-Main.cs +++ b/PKX/f1-Main.cs @@ -2594,6 +2594,8 @@ private void clickVerifyCHK(object sender, EventArgs e) } private void clickExportSAVBAK(object sender, EventArgs e) { + if (!SAV.Exportable) + return; SaveFileDialog sfd = new SaveFileDialog { FileName = Util.CleanFileName(SAV.BAKName) }; if (sfd.ShowDialog() != DialogResult.OK)