From ce67fd075972ba82cefb896c0a5185f7c9715898 Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 2 Jun 2015 17:27:50 +0400 Subject: [PATCH] (WidgetDPK): set scheme to default for default key values. --- ArcFormats/WidgetDPK.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/WidgetDPK.xaml.cs b/ArcFormats/WidgetDPK.xaml.cs index 586f3ec4..625f1da7 100644 --- a/ArcFormats/WidgetDPK.xaml.cs +++ b/ArcFormats/WidgetDPK.xaml.cs @@ -19,6 +19,8 @@ namespace GameRes.Formats.GUI uint key2 = Settings.Default.DPKKey2; if (last_scheme.Key1 != key1 || last_scheme.Key2 != key2) EncScheme.SelectedIndex = -1; + else if (null == EncScheme.SelectedItem) + EncScheme.SelectedIndex = 0; Key1.Text = key1.ToString ("X"); Key2.Text = key2.ToString ("X8");