Skip to content
Permalink
Browse files

Merge pull request #42471 from m-kuhn/random_fixes

Random fixes
  • Loading branch information
m-kuhn committed Mar 25, 2021
2 parents a973a77 + cb2426f commit 93f45e79431f50c5111039add298bae76cd93d00
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/core/layout/qgslayoutmodel.cpp
  2. +1 −1 tests/qt_modeltest/dynamictreemodel.cpp
@@ -28,6 +28,7 @@
#include <QSettings>
#include <QMessageBox>
#include <QIcon>
#include <QIODevice>

QgsLayoutModel::QgsLayoutModel( QgsLayout *layout, QObject *parent )
: QAbstractItemModel( parent )
@@ -279,7 +279,7 @@ void ModelChangeChildrenLayoutsCommand::doCommand()
// changing any children of that parent. The reason is that we're keeping parent1 and parent2
// around as QPersistentModelIndex instances, and we query idx.parent() in the loop.
QModelIndexList persistent = m_model->persistentIndexList();
for ( const QModelIndex &parent : parents )
for ( const QPersistentModelIndex &parent : parents )
{
int idx = persistent.indexOf( parent );
if ( idx != -1 )

0 comments on commit 93f45e7

Please sign in to comment.