--- jsampler/trunk/src/org/jsampler/view/std/JSInstrumentsDbTable.java 2008/05/28 04:00:48 1742 +++ jsampler/trunk/src/org/jsampler/view/std/JSInstrumentsDbTable.java 2008/05/31 23:04:01 1743 @@ -1,7 +1,7 @@ /* * JSampler - a java front-end for LinuxSampler * - * Copyright (C) 2005-2007 Grigor Iliev + * Copyright (C) 2005-2008 Grigor Iliev * * This file is part of JSampler. * @@ -626,7 +626,8 @@ LoadInstrumentAction(SamplerChannelModel model) { String s = "instrumentsdb.actions.loadInstrument.onChannel"; - putValue(Action.NAME, i18n.getMenuLabel(s, model.getChannelId())); + int i = CC.getSamplerModel().getChannelIndex(model) + 1; + putValue(Action.NAME, i18n.getMenuLabel(s, i)); channelModel = model; }