Commit edbab01c authored by Marco Martin's avatar Marco Martin
Browse files

get rid of most cannot stack parent warnings

parent 9a2d2269
......@@ -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;
}
......
......@@ -40,6 +40,7 @@ LauncherContainer {
frame.width: width
Repeater {
parent: root.flow
model: plasmoid.nativeInterface.applicationListModel
delegate: Delegate {
id: delegate
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment