get rid of most cannot stack parent warnings

This commit is contained in:
Marco Martin 2019-10-17 13:05:48 +02:00
parent 9a2d2269c0
commit edbab01cdf
2 changed files with 3 additions and 2 deletions

View file

@ -53,7 +53,7 @@ ApplicationListModel *HomeScreen::applicationListModel()
void HomeScreen::stackBefore(QQuickItem *item1, QQuickItem *item2)
{
if (!item1 || !item2 || item1->parentItem() != item2->parentItem()) {
if (!item1 || !item2 || item1 == item2 || item1->parentItem() != item2->parentItem()) {
return;
}
@ -62,7 +62,7 @@ void HomeScreen::stackBefore(QQuickItem *item1, QQuickItem *item2)
void HomeScreen::stackAfter(QQuickItem *item1, QQuickItem *item2)
{
if (!item1 || !item2 || item1->parentItem() != item2->parentItem()) {
if (!item1 || !item2 || item1 == item2 || item1->parentItem() != item2->parentItem()) {
return;
}

View file

@ -40,6 +40,7 @@ LauncherContainer {
frame.width: width
Repeater {
parent: root.flow
model: plasmoid.nativeInterface.applicationListModel
delegate: Delegate {
id: delegate