Fix data/object->preferences() calls.

This commit is contained in:
Kolan Sh 2018-06-22 11:09:30 +03:00
parent f062689584
commit 4b66489034
1 changed files with 24 additions and 24 deletions

View File

@ -105,9 +105,9 @@ namespace LAview.Desktop {
void call_data_preferences () {
var indices = get_data_indices ();
for (int i = indices.length; i > 0;)
var i = indices[0];
foreach (var p in AppCore.core.data_plugins.entries)
if (indices[--i] == 0) {
if (i-- == 0) {
try {
p.value.preferences(dialog);
break;
@ -122,9 +122,9 @@ namespace LAview.Desktop {
void call_object_preferences () {
var indices = get_objects_indices ();
for (int i = indices.length; i > 0;)
var i = indices[0];
foreach (var p in AppCore.core.object_plugins.entries)
if (indices[--i] == 0) {
if (i-- == 0) {
try {
p.value.preferences(dialog);
break;