retreive an index instead of creating

This commit is contained in:
Kevin Matz 2023-04-16 15:02:51 -04:00
parent 373e6dbda5
commit eb25959c08

View File

@ -19,7 +19,7 @@ UniverseModel::UniverseModel(QObject *parent, std::shared_ptr<DMX::Universe> uni
return;
data_change_token = universe_->onDataChange([this] (DMX::Universe*) {
emit dataChanged(createIndex(0,0), createIndex(rowCount(), columnCount()));
emit dataChanged(index(0,0), index(rowCount(), columnCount()));
});
}