mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 13:10:04 -05:00
--Bug fixes
-Apply template when saving sequences. -Was improperly setting name of sequence file.
This commit is contained in:
parent
2e518aeebb
commit
881927bb0a
@ -441,9 +441,9 @@ void FractoriumEmberController<T>::FillSequenceTree()
|
||||
template <typename T>
|
||||
void FractoriumEmberController<T>::SequenceTreeItemChanged(QTreeWidgetItem* item, int col)
|
||||
{
|
||||
if (auto parentItem = dynamic_cast<QTreeWidgetItem*>(item))
|
||||
if (item == m_Fractorium->ui.SequenceTree->topLevelItem(0))
|
||||
{
|
||||
QString text = parentItem->text(0);
|
||||
QString text = item->text(0);
|
||||
|
||||
if (text != "")
|
||||
m_SequenceFile.m_Filename = text;
|
||||
@ -661,6 +661,9 @@ void FractoriumEmberController<T>::SequenceSaveButtonClicked()
|
||||
EmberToXml<T> writer;
|
||||
QFileInfo fileInfo(filename);
|
||||
|
||||
for (auto& ember : m_SequenceFile.m_Embers)
|
||||
ApplyXmlSavingTemplate(ember);
|
||||
|
||||
if (writer.Save(filename.toStdString().c_str(), m_SequenceFile.m_Embers, 0, true, true))
|
||||
s->SaveFolder(fileInfo.canonicalPath());
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user