From 5f3122fd04f7325478d1adb165a6202611fe2b4f Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 23 Dec 2015 09:37:54 +0400 Subject: [PATCH] (NextItemExec): simplified index increment logic. --- MainWindow.xaml.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 218900eb..63203fba 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -1168,11 +1168,7 @@ namespace GARbro.GUI if (LookupActive) return; - var index = CurrentDirectory.SelectedIndex; - if (-1 == index) - index = 0; - else - ++index; + var index = CurrentDirectory.SelectedIndex + 1; if (index < CurrentDirectory.Items.Count) CurrentDirectory.SelectedIndex = index; }