Remove use of emit keyword where used for non signals
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 19 Dec 2022 14:11:59 +0000 (15:11 +0100)
committerClaudio Cambra <claudio.cambra@gmail.com>
Tue, 20 Dec 2022 11:07:55 +0000 (12:07 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/filedetails/shareemodel.cpp
src/gui/settingsdialog.cpp

index 2fb9be8f6b2f84eabefe0b8bd07e9c6e994a0f67..13ced59dcec70f2303fc092ed2ccaa5d0d48daf9 100644 (file)
@@ -231,9 +231,9 @@ void ShareeModel::shareesFetched(const QJsonDocument &reply)
     appendSharees(replyDataObject);
     appendSharees(replyDataExactMatchObject);
 
-    Q_EMIT beginResetModel();
+    beginResetModel();
     _sharees = newSharees;
-    Q_EMIT endResetModel();
+    endResetModel();
 
     Q_EMIT shareesReady();
 }
index 399e55df342bbfdbe6a0edf04d6c7f26a6c9099c..18e267165a1c37a5fb002bc8b220ca3422075f00 100644 (file)
@@ -224,7 +224,7 @@ void SettingsDialog::showIssuesList(AccountState *account)
     const auto userModel = UserModel::instance();
     const auto id = userModel->findUserIdForAccount(account);
     UserModel::instance()->setCurrentUserId(id);
-    emit Systray::instance()->showWindow();
+    Systray::instance()->showWindow();
 }
 
 void SettingsDialog::accountAdded(AccountState *s)