CVector<bool> does not work -> implement a workaround with int type

This commit is contained in:
Volker Fischer 2014-01-19 15:02:25 +00:00
parent 180837f70b
commit 7320b0a4cc
4 changed files with 6 additions and 6 deletions

View file

@ -548,7 +548,7 @@ void CAudioMixerBoard::StoreFaderSettings ( CChannelFader* pChanFader )
!pChanFader->GetReceivedName().isEmpty() )
{
CVector<int> viOldStoredFaderLevels ( vecStoredFaderLevels );
CVector<bool> vbOldStoredFaderIsSolo ( vecStoredFaderIsSolo );
CVector<int> vbOldStoredFaderIsSolo ( vecStoredFaderIsSolo );
// init temporary list count (may be overwritten later on)
int iTempListCnt = 0;
@ -610,7 +610,7 @@ bool CAudioMixerBoard::GetStoredFaderSettings ( const CChannelInfo& ChanInfo,
{
// copy stored settings values
iStoredFaderLevel = vecStoredFaderLevels[iIdx];
bStoredFaderIsSolo = vecStoredFaderIsSolo[iIdx];
bStoredFaderIsSolo = vecStoredFaderIsSolo[iIdx] != false;
// values found and copied, return OK
return true;

View file

@ -103,7 +103,7 @@ public:
// settings
CVector<QString> vecStoredFaderTags;
CVector<int> vecStoredFaderLevels;
CVector<bool> vecStoredFaderIsSolo;
CVector<int> vecStoredFaderIsSolo;
protected:
bool GetStoredFaderSettings ( const CChannelInfo& ChanInfo,

View file

@ -269,7 +269,7 @@ public:
CChannelCoreInfo ChannelInfo;
CVector<QString> vecStoredFaderTags;
CVector<int> vecStoredFaderLevels;
CVector<bool> vecStoredFaderIsSolo;
CVector<int> vecStoredFaderIsSolo;
// window position/state settings
QByteArray vecWindowPosMain;

View file

@ -363,7 +363,7 @@ void CSettings::Save()
{
SetFlagIniSet ( IniXMLDocument, "client",
QString ( "storedfaderissolo%1" ).arg ( iIdx ),
pClient->vecStoredFaderIsSolo[iIdx] );
pClient->vecStoredFaderIsSolo[iIdx] != false );
}
// name