Fix Scripting code completion with just one entry

pull/369/head
Michael Zanetti 2020-04-20 21:00:38 +02:00
parent 4bcfe86d13
commit ffcd2edb98
2 changed files with 2 additions and 4 deletions

View File

@ -207,13 +207,12 @@ void LogsModelNg::setViewStartTime(const QDateTime &viewStartTime)
QVariant LogsModelNg::minValue() const
{
// qDebug() << "returning min value" << m_minValue;
return m_minValue;
}
QVariant LogsModelNg::maxValue() const
{
// qDebug() << "returning max value" << m_maxValue;
return m_maxValue;
}
@ -423,7 +422,6 @@ void LogsModelNg::newLogEntryReceived(const QVariantMap &data)
return;
}
qDebug() << "Adding entry!!!!!!";
beginInsertRows(QModelIndex(), 0, 0);
QDateTime timeStamp = QDateTime::fromMSecsSinceEpoch(entryMap.value("timestamp").toLongLong());
QMetaEnum sourceEnum = QMetaEnum::fromType<LogEntry::LoggingSource>();

View File

@ -76,7 +76,7 @@ Rectangle {
}
function show() {
if (root.model.count > 1) {
if (root.model.count > 0) {
d.hidden = false;
d.manuallyInvoked = true;
}