From dc43d21f3730379b0bedd5967bfe9e0ee43b02aa Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Thu, 10 Mar 2022 16:16:26 +0000 Subject: [PATCH] Changes as per CR --- plugins/share/shareplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/share/shareplugin.cpp b/plugins/share/shareplugin.cpp index 9d2addd4b..8495cc93a 100644 --- a/plugins/share/shareplugin.cpp +++ b/plugins/share/shareplugin.cpp @@ -203,12 +203,12 @@ void SharePlugin::shareUrl(const QUrl& url, bool open) NetworkPacket packet(PACKET_TYPE_SHARE_REQUEST); if (url.isLocalFile()) { QSharedPointer ioFile(new QFile(url.toLocalFile())); - QFileInfo info(*ioFile); if (!ioFile->exists()) { Daemon::instance()->reportError(i18n("Could not share file"), i18n("%1 does not exist", url.toLocalFile())); return; } else { + QFileInfo info(*ioFile); packet.setPayload(ioFile, ioFile->size()); packet.set(QStringLiteral("filename"), QUrl(url).fileName()); packet.set(QStringLiteral("creationTime"), info.birthTime().toMSecsSinceEpoch());