(NextItemExec): simplified index increment logic.

This commit is contained in:
morkt 2015-12-23 09:37:54 +04:00
parent 0b89f83742
commit 5f3122fd04

View File

@ -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;
}