mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Revert "Try Clazy fix-its"
Segfault on old Qt versions!
This reverts commit dba7caed30.
This commit is contained in:
@@ -61,8 +61,7 @@ PastePartsCommand::~PastePartsCommand()
|
||||
void PastePartsCommand::undo()
|
||||
{
|
||||
m_scene->blockSignals(true);
|
||||
for (auto qgi : std::as_const(m_pasted_content))
|
||||
{
|
||||
for (auto qgi : m_pasted_content) {
|
||||
m_scene->removeItem(qgi);
|
||||
}
|
||||
m_scene->blockSignals(false);
|
||||
@@ -85,8 +84,7 @@ void PastePartsCommand::redo()
|
||||
m_first_redo = false;
|
||||
} else {
|
||||
m_scene->blockSignals(true);
|
||||
for (auto qgi : std::as_const(m_pasted_content))
|
||||
{
|
||||
for (auto qgi : m_pasted_content) {
|
||||
m_scene->addItem(qgi);
|
||||
}
|
||||
m_scene->blockSignals(false);
|
||||
|
||||
Reference in New Issue
Block a user