mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
debug for where a crash happens
This commit is contained in:
parent
5b77af489e
commit
bd7e936de6
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue