Prevent loss of last station across multiple program runs if its description is empty

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/12/head
Michele Calgaro 11 months ago
parent 5470e3749c
commit 69209da954
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -76,18 +76,21 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
nameList = appConfig->readListEntry( "names" );
urlList = appConfig->readListEntry( "urls" );
descList = appConfig->readListEntry( "descs" );
TQStringList::iterator iter1, iter2, iter3;
iter1 = nameList.begin();
iter2 = urlList.begin();
iter3 = descList.begin();
for( ; iter1 != nameList.end() && iter2 != urlList.end() && iter3 != descList.end(); ++iter1, ++iter2, ++iter3 )
size_t numEntries = nameList.size();
if (urlList.size() < numEntries)
{
numEntries = urlList.size();
}
for(size_t idx = 0; idx < numEntries; ++idx)
{
ProcessListViewItem * procItem = new ProcessListViewItem( m_streamsListView, *iter1, "", "");
ProcessListViewItem * procItem = new ProcessListViewItem( m_streamsListView, nameList[idx], "", "");
procItem->setRenameEnabled(0, true);
ProcessController *pc = procItem->getProcessController();
pc->setUrl( *iter2 );
pc->setDescription( *iter3 );
pc->setUrl( urlList[idx] );
if (idx < descList.size())
{
pc->setDescription( descList[idx] );
}
connect(pc, TQT_SIGNAL(stopRipSignal(ProcessController*)), this, TQT_SLOT(ripStopped(ProcessController*)));
}

Loading…
Cancel
Save