Commit 5d637b7a authored by Albert  Babí Oller's avatar Albert Babí Oller
Browse files

misc: minor changes for GNU/Linux compilation

Gitlab: #558

Change-Id: I7060e4a2e862d1a771fbf8a6b71fce2910b59c30
parent 12d68527
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "splashscreen.h" #include "splashscreen.h"
#include <memory>
#include <QApplication> #include <QApplication>
#include <QFile> #include <QFile>
......
...@@ -38,7 +38,7 @@ buildInteractionJson(lrc::api::ConversationModel& conversationModel, ...@@ -38,7 +38,7 @@ buildInteractionJson(lrc::api::ConversationModel& conversationModel,
interactionObject.insert("sender_contact_method", QJsonValue(sender)); interactionObject.insert("sender_contact_method", QJsonValue(sender));
interactionObject.insert("timestamp", QJsonValue(timestamp)); interactionObject.insert("timestamp", QJsonValue(timestamp));
interactionObject.insert("direction", QJsonValue(direction)); interactionObject.insert("direction", QJsonValue(direction));
interactionObject.insert("duration", QJsonValue(interaction.duration)); interactionObject.insert("duration", QJsonValue(static_cast<int>(interaction.duration)));
switch (interaction.type) switch (interaction.type)
{ {
...@@ -140,4 +140,4 @@ interactionsToJsonArrayObject(lrc::api::ConversationModel& conversationModel, ...@@ -140,4 +140,4 @@ interactionsToJsonArrayObject(lrc::api::ConversationModel& conversationModel,
} }
} }
return QString(QJsonDocument(array).toJson(QJsonDocument::Compact)); return QString(QJsonDocument(array).toJson(QJsonDocument::Compact));
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment