mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Ungroup terminal is now managed by undo stack
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user