Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-10-28 17:49:43 +0300
committerFabian Müller <80399010+fmoc@users.noreply.github.com>2022-11-02 18:48:33 +0300
commitac6320fb52c02586292ee4fec3f2eb2c649d094a (patch)
tree4c57cb447c2bcd3752a51beb6d38751603988d80
parenta7303dddc790007de5d35b15f202a56b50a2c02b (diff)
Use emit on signals
-rw-r--r--src/gui/folderstatusmodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index 350324f3c..e16093b1c 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -110,7 +110,7 @@ void FolderStatusModel::setAccountState(const AccountStatePtr &accountState)
_folders[i]._pathIdx << i;
}
- endResetModel();
+ Q_EMIT endResetModel();
emit dirtyChanged();
}
@@ -753,13 +753,13 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list)
}
if (!newSubs.isEmpty()) {
- beginInsertRows(idx, 0, newSubs.size() - 1);
+ Q_EMIT beginInsertRows(idx, 0, newSubs.size() - 1);
parentInfo->_subs = std::move(newSubs);
- endInsertRows();
+ Q_EMIT endInsertRows();
}
for (auto it = undecidedIndexes.begin(); it != undecidedIndexes.end(); ++it) {
- suggestExpand(index(*it, 0, idx));
+ Q_EMIT suggestExpand(index(*it, 0, idx));
}
/* Try to remove the the undecided lists the items that are not on the server. */
auto it = std::remove_if(selectiveSyncUndecidedList.begin(), selectiveSyncUndecidedList.end(),