Ungroup terminal is now managed by undo stack

This commit is contained in:
joshua
2021-10-09 14:45:54 +02:00
parent c6e3e385ff
commit 7c6fca2aac
5 changed files with 79 additions and 12 deletions

View File

@@ -556,7 +556,7 @@ void TerminalStripEditor::on_m_ungroup_pb_clicked()
if (m_model && m_current_strip)
{
const auto rtd_vector = m_model->realTerminalDataForIndex(ui->m_table_widget->selectionModel()->selectedIndexes());
m_current_strip->unGroupTerminals(rtd_vector);
m_project->undoStack()->push(new UnGroupTerminalsCommand(m_current_strip, rtd_vector));
}
}