From 1974fba0e4ec62d71e9f5c8d1b50129d0260053e Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Sat, 26 Nov 2011 19:02:10 +0100 Subject: [PATCH] Added calls to ensure the model is updated --- application/stationlistmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/stationlistmodel.cpp b/application/stationlistmodel.cpp index d0d12a8..1dc66b8 100644 --- a/application/stationlistmodel.cpp +++ b/application/stationlistmodel.cpp @@ -44,6 +44,7 @@ bool StationListModel::load(const QString &filename) qDebug() << "loading file:" << fi.absoluteFilePath(); emit layoutAboutToBeChanged(); + beginInsertRows(QModelIndex(), 0, 0); if (!file.open(QFile::ReadOnly | QFile::Text)) { qDebug() << "cannot open file:" << filename; return false; @@ -70,6 +71,7 @@ bool StationListModel::load(const QString &filename) return false; } emit layoutChanged(); + endInsertRows(); return true; } -- 1.7.9.5