on xenial help sign in
fix implementation of pin() according to the change of the API definition
bf37b18Michael Zanetti
plugins/Unity/Launcher/launchermodel.cpp+3
@@ -105,6 +105,9 @@ void LauncherModel::pin(const QString &appId, int index)
105 move(currentIndex, index);
105 move(currentIndex, index);
106 }
106 }
107 } else {
107 } else {
108+ if (index == -1) {
109+ index = m_list.count();
110+ }
108 beginInsertRows(QModelIndex(), index, index);
111 beginInsertRows(QModelIndex(), index, index);
109 LauncherItem *item = new LauncherItem(appId,
112 LauncherItem *item = new LauncherItem(appId,
110 m_backend->desktopFile(appId),
113 m_backend->desktopFile(appId),