--- qsampler/trunk/src/qsamplerChannel.cpp 2005/08/28 12:15:16 760 +++ qsampler/trunk/src/qsamplerChannel.cpp 2006/09/24 12:47:51 920 @@ -1,7 +1,7 @@ // qsamplerChannel.cpp // /**************************************************************************** - Copyright (C) 2003-2005, rncbc aka Rui Nuno Capela. All rights reserved. + Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,9 +13,9 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *****************************************************************************/ @@ -32,7 +32,7 @@ #include "gig.h" #endif -#define QSAMPLER_INSTRUMENT_MAX 8 +#define QSAMPLER_INSTRUMENT_MAX 100 //------------------------------------------------------------------------- @@ -868,6 +868,14 @@ } +// Commit any pending editing. +void qsamplerChannelRoutingTable::flush (void) +{ + if (QTable::isEditing()) + QTable::endEdit(QTable::currEditRow(), QTable::currEditCol(), true, true); +} + + //------------------------------------------------------------------------- // qsamplerChannelRoutingComboBox - Custom combo box for routing table. //