CVector<bool> does not work -> implement a workaround with int type
This commit is contained in:
parent
180837f70b
commit
7320b0a4cc
4 changed files with 6 additions and 6 deletions
|
@ -547,8 +547,8 @@ void CAudioMixerBoard::StoreFaderSettings ( CChannelFader* pChanFader )
|
|||
if ( pChanFader->IsVisible() &&
|
||||
!pChanFader->GetReceivedName().isEmpty() )
|
||||
{
|
||||
CVector<int> viOldStoredFaderLevels ( vecStoredFaderLevels );
|
||||
CVector<bool> vbOldStoredFaderIsSolo ( vecStoredFaderIsSolo );
|
||||
CVector<int> viOldStoredFaderLevels ( vecStoredFaderLevels );
|
||||
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;
|
||||
|
|
|
@ -103,7 +103,7 @@ public:
|
|||
// settings
|
||||
CVector<QString> vecStoredFaderTags;
|
||||
CVector<int> vecStoredFaderLevels;
|
||||
CVector<bool> vecStoredFaderIsSolo;
|
||||
CVector<int> vecStoredFaderIsSolo;
|
||||
|
||||
protected:
|
||||
bool GetStoredFaderSettings ( const CChannelInfo& ChanInfo,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -363,7 +363,7 @@ void CSettings::Save()
|
|||
{
|
||||
SetFlagIniSet ( IniXMLDocument, "client",
|
||||
QString ( "storedfaderissolo%1" ).arg ( iIdx ),
|
||||
pClient->vecStoredFaderIsSolo[iIdx] );
|
||||
pClient->vecStoredFaderIsSolo[iIdx] != false );
|
||||
}
|
||||
|
||||
// name
|
||||
|
|
Loading…
Reference in a new issue