Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 93f45e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/layout/qgslayoutmodel.cpp
Expand Up @@ -28,6 +28,7 @@
#include <QSettings>
#include <QMessageBox>
#include <QIcon>
#include <QIODevice>

QgsLayoutModel::QgsLayoutModel( QgsLayout *layout, QObject *parent )
: QAbstractItemModel( parent )
Expand Down
2 changes: 1 addition & 1 deletion tests/qt_modeltest/dynamictreemodel.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 93f45e7

Please sign in to comment.