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

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Cambra <claudio.cambra@gmail.com>2022-03-05 15:44:03 +0300
committerClaudio Cambra <claudio.cambra@gmail.com>2022-03-16 10:38:14 +0300
commit02f3a1aed6e8023b691b74c52300b1c1a3aacb84 (patch)
tree8562b6a9bb1d4dd436037b0c1d54392647308266 /src/gui/socketapi
parentc94e7595a5d43801c7d1a93cd1b0302dddfae95a (diff)
File activity dialog now works for all file actions activities (e.g. deleted files)
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
Diffstat (limited to 'src/gui/socketapi')
-rw-r--r--src/gui/socketapi/socketapi.cpp2
-rw-r--r--src/gui/socketapi/socketapi.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/socketapi/socketapi.cpp b/src/gui/socketapi/socketapi.cpp
index 6eaa3a6b5..88d8e2852 100644
--- a/src/gui/socketapi/socketapi.cpp
+++ b/src/gui/socketapi/socketapi.cpp
@@ -497,7 +497,7 @@ void SocketApi::broadcastMessage(const QString &msg, bool doWait)
void SocketApi::processFileActivityRequest(const QString &localFile)
{
const auto fileData = FileData::get(localFile);
- emit fileActivityCommandReceived(fileData.serverRelativePath, fileData.localPath);
+ emit fileActivityCommandReceived(fileData.serverRelativePath, fileData.journalRecord().numericFileId().toInt());
}
void SocketApi::processShareRequest(const QString &localFile, SocketListener *listener, ShareDialogStartPage startPage)
diff --git a/src/gui/socketapi/socketapi.h b/src/gui/socketapi/socketapi.h
index 5183985b5..112527bb3 100644
--- a/src/gui/socketapi/socketapi.h
+++ b/src/gui/socketapi/socketapi.h
@@ -64,7 +64,7 @@ public slots:
signals:
void shareCommandReceived(const QString &sharePath, const QString &localPath, ShareDialogStartPage startPage);
- void fileActivityCommandReceived(const QString &sharePath, const QString &localPath);
+ void fileActivityCommandReceived(const QString &objectName, const int objectId);
private slots:
void slotNewConnection();