diff options
Diffstat (limited to 'lsscenemodel.cpp')
-rw-r--r-- | lsscenemodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lsscenemodel.cpp b/lsscenemodel.cpp index f5c4ba3..acb059c 100644 --- a/lsscenemodel.cpp +++ b/lsscenemodel.cpp @@ -110,6 +110,11 @@ bool LSSceneModel::insertRows(int row, int count, const QModelIndex &parent) { return false; } + if (!parent.isValid()) { + qWarning("can't move stuff to the top level"); + return false; + } + m_movingPaneParent = new QPersistentModelIndex(parent); m_movingPaneRow = row; m_movingPaneCount = count; |