Changeset - fa62234a4e22
[Not reviewed]
Hasan Yavuz Ă–ZDERYA - 9 years ago 2016-12-31 15:31:05
hy@ozderya.net
start channel naming from 1
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/channelinfomodel.cpp
Show inline comments
 
@@ -18,13 +18,12 @@
 
*/
 

	
 
#include "channelinfomodel.h"
 

	
 
#include <QtDebug>
 

	
 
/// name + visibility
 
enum ChannelInfoColumn
 
{
 
    COLUMN_NAME = 0,
 
    COLUMN_VISIBILITY,
 
    COLUMN_COUNT
 
};
 
@@ -159,13 +158,13 @@ void ChannelInfoModel::setNumOfChannels(
 
    // we create channel info but never remove channel info to
 
    // remember user entered info
 
    if ((int) number > infos.length())
 
    {
 
        for (unsigned ci = _numOfChannels; ci < number; ci++)
 
        {
 
            infos.append({QString("Channel %1").arg(ci), true});
 
            infos.append({QString("Channel %1").arg(ci+1), true});
 
        }
 
    }
 

	
 
    // make sure newly available channels are visible, we don't
 
    // remember visibility option intentionally so that user doesn't
 
    // get confused
0 comments (0 inline, 0 general)