diff --git a/data/instancemodel.cpp b/data/instancemodel.cpp index 4fbcebc2..fbdb8212 100644 --- a/data/instancemodel.cpp +++ b/data/instancemodel.cpp @@ -61,16 +61,16 @@ void InstanceGroup::addInstance ( InstanceBase* inst ) void InstanceModel::initialLoad(QString dir) { - groupFile = dir + "/instgroups.json"; + groupFileName = dir + "/instgroups.json"; implicitGroup = new InstanceGroup("Ungrouped", this); groups.append(implicitGroup); // temporary map from instance ID to group name QMap groupMap; - if (QFileInfo(groupFile).exists()) + if (QFileInfo(groupFileName).exists()) { - QFile groupFile(groupFile); + QFile groupFile(groupFileName); if (!groupFile.open(QIODevice::ReadOnly)) { diff --git a/data/instancemodel.h b/data/instancemodel.h index 7b6cb8c6..4bd34831 100644 --- a/data/instancemodel.h +++ b/data/instancemodel.h @@ -129,7 +129,7 @@ signals: public slots: private: - QString groupFile; + QString groupFileName; QVector groups; InstanceGroup * implicitGroup; };