Fix naming issue in instance model class.

This commit is contained in:
Andrew 2013-01-31 16:46:31 -06:00
parent 076fb8a65e
commit 2d05e90196
2 changed files with 4 additions and 4 deletions

View File

@ -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<QString, QString> groupMap;
if (QFileInfo(groupFile).exists())
if (QFileInfo(groupFileName).exists())
{
QFile groupFile(groupFile);
QFile groupFile(groupFileName);
if (!groupFile.open(QIODevice::ReadOnly))
{

View File

@ -129,7 +129,7 @@ signals:
public slots:
private:
QString groupFile;
QString groupFileName;
QVector<InstanceGroup*> groups;
InstanceGroup * implicitGroup;
};