diff --git a/src/applicationmodel.cpp b/src/applicationmodel.cpp index 7039ebb..cc8ac6d 100644 --- a/src/applicationmodel.cpp +++ b/src/applicationmodel.cpp @@ -100,9 +100,13 @@ void ApplicationModel::addItem(const QString &desktopFile) item->visibleName = desktopInfo.value("Name"); item->exec = desktopInfo.value("Exec"); item->desktopPath = desktopFile; + item->isPinned = true; m_appItems << item; endInsertRows(); + emit itemAdded(); + emit countChanged(); + savePinAndUnPinList(); }