Build fixed.

This commit is contained in:
Martin Rotter 2017-11-13 19:26:26 +01:00
parent 6b72937992
commit bdfe0af3b7
3 changed files with 5 additions and 4 deletions

@ -1 +1 @@
Subproject commit 4a01edaec7d67d3b2ae81aeea2a3c876216fbab8
Subproject commit ae7084718c41afc01919779e58cd449e0eebd401

View File

@ -229,7 +229,9 @@ QVariant MessagesModel::data(const QModelIndex& idx, int role) const {
}
else if (index_column == MSG_DB_CONTENTS_INDEX) {
// Do not display full contents here.
return data(idx, Qt::EditRole).toString().mid(0, 64).simplified() + QL1S("...");
QString contents = data(idx, Qt::EditRole).toString().mid(0, 64).simplified() + QL1S("...");
return contents;
}
else if (index_column == MSG_DB_AUTHOR_INDEX) {
const QString author_name = QSqlQueryModel::data(idx, role).toString();

View File

@ -533,8 +533,7 @@ int DatabaseQueries::updateMessages(QSqlDatabase db,
contents_existing_message = query_select_with_url.value(4).toString();
feed_id_existing_message = query_select_with_url.value(5).toString();
qDebug("Message with these attributes is already present in DB and has DB ID %d.",
qPrintable(message.m_customId), id_existing_message);
qDebug("Message with these attributes is already present in DB and has DB ID %d.", id_existing_message);
}
else if (query_select_with_url.lastError().isValid()) {
qWarning("Failed to check for existing message in DB via URL: '%s'.", qPrintable(query_select_with_url.lastError().text()));