Fix the problem that the infos of update signal are incomplete.
This commit is contained in:
parent
03aad8963f
commit
56884b6426
|
@ -968,7 +968,7 @@ bool AppDBManager::handleFavoritesStateUpdate(const QString &desktopFilePath, co
|
|||
return res;
|
||||
}
|
||||
|
||||
bool AppDBManager::handleChangeFavoritesPos(const QString &desktopFilePath, const uint pos, const int previousPos, ApplicationInfoMap updatedInfo)
|
||||
bool AppDBManager::handleChangeFavoritesPos(const QString &desktopFilePath, const uint pos, const int previousPos, ApplicationInfoMap &updatedInfo)
|
||||
{
|
||||
if (pos < 1) {
|
||||
qWarning() << "To be moved to a invalid favorites pos , I quit!!";
|
||||
|
@ -1165,7 +1165,7 @@ bool AppDBManager::handleTopStateUpdate(const QString &desktopFilePath, const ui
|
|||
return res;
|
||||
}
|
||||
|
||||
bool AppDBManager::handleChangeTopPos(const QString &desktopFilePath, uint pos, const int previousPos, ApplicationInfoMap updatedInfo)
|
||||
bool AppDBManager::handleChangeTopPos(const QString &desktopFilePath, uint pos, const int previousPos, ApplicationInfoMap &updatedInfo)
|
||||
{
|
||||
if (pos < 1) {
|
||||
qWarning() << "To be moved to a invalid top pos , I quit!!";
|
||||
|
|
|
@ -104,8 +104,8 @@ private:
|
|||
void initFileSystemWatcher();
|
||||
|
||||
//处理置顶收藏移动位置
|
||||
bool handleChangeFavoritesPos(const QString &desktopFilePath, const uint pos, const int previousPos, ApplicationInfoMap updatedInfo);
|
||||
bool handleChangeTopPos(const QString &desktopFilePath, uint pos, const int previousPos, ApplicationInfoMap updatedInfo);
|
||||
bool handleChangeFavoritesPos(const QString &desktopFilePath, const uint pos, const int previousPos, ApplicationInfoMap &updatedInfo);
|
||||
bool handleChangeTopPos(const QString &desktopFilePath, uint pos, const int previousPos, ApplicationInfoMap &updatedInfo);
|
||||
|
||||
private:
|
||||
static QMutex s_mutex;
|
||||
|
|
Loading…
Reference in New Issue