@@ -21,8 +21,6 @@
21#include "launcheritem.h"
21#include "launcheritem.h"
22#include "backend/launcherbackend.h"
22#include "backend/launcherbackend.h"
26LauncherModel::LauncherModel(QObject *parent):
24LauncherModel::LauncherModel(QObject *parent):
27 LauncherModelInterface(parent),
25 LauncherModelInterface(parent),
28 m_backend(new LauncherBackend(true, this))
26 m_backend(new LauncherBackend(true, this))
@@ -217,11 +215,8 @@ void LauncherModel::applicationFocused(const QString &appId)
219 int index = findApplication(helper);
217 int index = findApplication(helper);
220− qDebug() << "################## found focused app index" << index << helper;
222 if (index >= 0) {
218 if (index >= 0) {
223 m_list.at(index)->setFocused(true);
219 m_list.at(index)->setFocused(true);
224− qDebug() << "set focused to true on" << m_list.at(index)->name();
225 Q_EMIT dataChanged(this->index(index), this->index(index), QVector<int>() << RoleFocused);
220 Q_EMIT dataChanged(this->index(index), this->index(index), QVector<int>() << RoleFocused);
227 // Add app to recent apps
222 // Add app to recent apps
@@ -270,7 +265,6 @@ int LauncherModel::findApplication(const QString &appId)
271 for (int i = 0; i < m_list.count(); ++i) {
266 for (int i = 0; i < m_list.count(); ++i) {
272 LauncherItem *item = m_list.at(i);
267 LauncherItem *item = m_list.at(i);
273− qDebug() << "checking app" << item->appId();
274 if (item->appId() == appId) {
268 if (item->appId() == appId) {
275 return i;
269 return i;