setup proper title in RsCollectionEditor when in download mode

This commit is contained in:
csoler 2017-10-21 17:42:17 +02:00
parent 2cfa86620c
commit cbcf402e0b
2 changed files with 5 additions and 3 deletions

View File

@ -214,9 +214,7 @@ void RsCollection::recursAddElements(QDomDocument& doc,const ColFileInfo& colFil
d.setAttribute(QString("name"),colFileInfo.name) ;
for (std::vector<ColFileInfo>::const_iterator it = colFileInfo.children.begin(); it != colFileInfo.children.end(); ++it)
{
recursAddElements(doc,(*it),d) ;
}
e.appendChild(d) ;
}

View File

@ -138,7 +138,11 @@ RsCollectionDialog::RsCollectionDialog(const QString& collectionFileName
ui.headerFrame->setHeaderImage(QPixmap(":/images/library64.png"));
ui.headerFrame->setHeaderText(tr("Collection Editor"));
if(creation)
ui.headerFrame->setHeaderText(tr("Collection Editor"));
else
ui.headerFrame->setHeaderText(tr("Download files"));
// 1 - add all elements to the list.