Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 637:109a1dd59f45
Ensure that undo restores deleted pane's layers in their original order
author | Chris Cannam |
---|---|
date | Thu, 29 Nov 2018 14:25:50 +0000 |
parents | 29bef008588e |
children | 8c5379570f36 f54722b34c3a |
comparison
equal
deleted
inserted
replaced
632:29bef008588e | 637:109a1dd59f45 |
---|---|
3983 | 3983 |
3984 CommandHistory::getInstance()->startCompoundOperation | 3984 CommandHistory::getInstance()->startCompoundOperation |
3985 (tr("Delete Pane"), true); | 3985 (tr("Delete Pane"), true); |
3986 | 3986 |
3987 while (pane->getLayerCount() > 0) { | 3987 while (pane->getLayerCount() > 0) { |
3988 Layer *layer = pane->getLayer(0); | 3988 Layer *layer = pane->getLayer(pane->getLayerCount() - 1); |
3989 if (layer) { | 3989 if (layer) { |
3990 m_document->removeLayerFromView(pane, layer); | 3990 m_document->removeLayerFromView(pane, layer); |
3991 } else { | 3991 } else { |
3992 break; | 3992 break; |
3993 } | 3993 } |