Commit bd7e936d authored by Marco Martin's avatar Marco Martin

debug for where a crash happens

parent 5b77af48
......@@ -245,11 +245,13 @@ void ApplicationListModel::setLocation(int row, LauncherLocation location)
return;
}
m_favorites.insert(row, data.storageId);
qWarning()<<"AAAAAAAAAAAAA111"<<m_maxFavoriteCount<<m_applicationList.count();
if (m_applicationList[m_maxFavoriteCount].location == Favorites) {
m_applicationList[m_maxFavoriteCount].location = Grid;
qWarning()<<"bbbbbb2222";
m_favorites.pop_back();
emit dataChanged(index(m_maxFavoriteCount, 0), index(m_maxFavoriteCount, 0));
qWarning()<<"cccc3333";
}
m_homeScreen->config().writeEntry("Favorites", m_favorites);
......
......@@ -61,7 +61,7 @@ Item {
} else if (newContainer == appletsLayout) {
var pos = appletsLayout.mapFromItem(delegate, 0, 0);
plasmoid.nativeInterface.applicationListModel.setLocation(delegate.modelData.index, ApplicationListModel.Desktop);
internal.showSpacer(delegate, dragCenterX, dragCenterY);
return;
......
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