diff --git a/src/messagesadapter.cpp b/src/messagesadapter.cpp index 39d377e3ca6f0d3092413d8e7d36ee665af2f861..479aff2e7cc96587d4fbca6f015d1e809d8956eb 100644 --- a/src/messagesadapter.cpp +++ b/src/messagesadapter.cpp @@ -178,15 +178,6 @@ MessagesAdapter::deleteInteraction(const QString& interactionId) ->clearInteractionFromConversation(lrcInstance_->get_selectedConvUid(), interactionId); } -void -MessagesAdapter::openFile(const QString& arg) -{ - QUrl fileUrl("file:///" + arg); - if (!QDesktopServices::openUrl(fileUrl)) { - qDebug() << "Couldn't open file: " << fileUrl; - } -} - void MessagesAdapter::openUrl(const QString& url) { diff --git a/src/messagesadapter.h b/src/messagesadapter.h index 7049e0b5a4c4463f2c27d7cf81932bc556734d5d..e6717ef4c39094c119df3c4915cadea236f8ae1f 100644 --- a/src/messagesadapter.h +++ b/src/messagesadapter.h @@ -96,7 +96,6 @@ protected: Q_INVOKABLE void acceptFile(const QString& arg); Q_INVOKABLE void cancelFile(const QString& arg); Q_INVOKABLE void openUrl(const QString& url); - Q_INVOKABLE void openFile(const QString& arg); Q_INVOKABLE void openDirectory(const QString& arg); Q_INVOKABLE void retryInteraction(const QString& interactionId); Q_INVOKABLE void deleteInteraction(const QString& interactionId); @@ -106,7 +105,9 @@ protected: Q_INVOKABLE QVariantMap getMediaInfo(const QString& msg); Q_INVOKABLE bool isRemoteImage(const QString& msg); Q_INVOKABLE QString getFormattedTime(const quint64 timestamp); - Q_INVOKABLE void parseMessageUrls(const QString& messageId, const QString& msg, bool showPreview); + Q_INVOKABLE void parseMessageUrls(const QString& messageId, + const QString& msg, + bool showPreview); Q_INVOKABLE void onPaste(); Q_INVOKABLE QString getStatusString(int status); Q_INVOKABLE QVariantMap getTransferStats(const QString& messageId, int);