From eb25959c08ee61de1c64061d598632efe15be0b5 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Sun, 16 Apr 2023 15:02:51 -0400 Subject: [PATCH] retreive an index instead of creating --- platform/qt/sacn/universemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/qt/sacn/universemodel.cpp b/platform/qt/sacn/universemodel.cpp index 3083b5a..86c9da0 100644 --- a/platform/qt/sacn/universemodel.cpp +++ b/platform/qt/sacn/universemodel.cpp @@ -19,7 +19,7 @@ UniverseModel::UniverseModel(QObject *parent, std::shared_ptr 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())); }); }