Fix alpha sorting on startup
authorLuciano Montanaro <mikelima@cirulla.net>
Sun, 17 Jul 2011 20:01:19 +0000 (22:01 +0200)
committerLuciano Montanaro <mikelima@cirulla.net>
Sun, 17 Jul 2011 22:22:16 +0000 (00:22 +0200)
The station view was not sorted on startup.
This was hidden by the GeoPosition updates, which were removed in 4.2

application/stationlistmodel.cpp

index bdda526..eeb444e 100644 (file)
@@ -46,6 +46,12 @@ bool StationListModel::load(const QString &filename)
         qDebug() << "file error for:" << filename;
         return false;
     }
+    /*
+    QModelIndex first = index(0, 0);
+    QModelIndex last = index(rowCount(), columnCount());
+    emit dataChanged(first, last);
+    */
+    emit layoutChanged();
     return true;
 }