fix implementation of pin() according to the change of the API definition
commitbf37b18942bf981eb6de743f6e3f6c13e8b10690
authorMichael Zanetti <michael.zanetti@canonical.com>
dateMon 8 Jul 2013, 18:14 (13 years ago)
parent8b9e14c
plugins/Unity/Launcher/launchermodel.cpp+3
@@ -105,6 +105,9 @@ void LauncherModel::pin(const QString &appId, int index)
105105 move(currentIndex, index);
106106 }
107107 } else {
108+ if (index == -1) {
109+ index = m_list.count();
110+ }
108111 beginInsertRows(QModelIndex(), index, index);
109112 LauncherItem *item = new LauncherItem(appId,
110113 m_backend->desktopFile(appId),