@@ -23,6 +23,8 @@
2323
2424#include <unity/shell/application/ApplicationInfoInterface.h>
2525
26+#include <QDebug>
27+
2628using namespace unity::shell::application;
2729
2830LauncherModel::LauncherModel(QObject *parent):
@@ -156,6 +158,7 @@ void LauncherModel::requestRemove(const QString &appId)
156158 }
157159
158160 if (m_appManager->findApplication(appId)) {
161+ qDebug() << "unpinning app" << appId;
159162 m_list.at(index)->setPinned(false);
160163 return;
161164 }
@@ -248,6 +251,7 @@ void LauncherModel::storeAppList()
248251 QStringList appIds;
249252 Q_FOREACH(LauncherItem *item, m_list) {
250253 if (item->pinned()) {
254+ qDebug() << "storing pinned app:" << item->appId();
251255 appIds << item->appId();
252256 }
253257 }
@@ -324,6 +328,8 @@ void LauncherModel::applicationRemoved(const QModelIndex &parent, int row)
324328 }
325329 }
326330
331+ qDebug() << "app removed:" << appIndex << m_list.at(appIndex)->pinned();
332+
327333 if (appIndex > -1 && !m_list.at(appIndex)->pinned()) {
328334 beginRemoveRows(QModelIndex(), appIndex, appIndex);
329335 m_list.takeAt(appIndex)->deleteLater();