diff --git a/pglab/ParamTypeDelegate.cpp b/pglab/ParamTypeDelegate.cpp index b31a47f..7c1fda0 100644 --- a/pglab/ParamTypeDelegate.cpp +++ b/pglab/ParamTypeDelegate.cpp @@ -35,7 +35,7 @@ void ParamTypeDelegate::setEditorData(QWidget *editor, const QModelIndex &index) auto data = index.data(); if (data.canConvert()) { QModelIndexList indexes = m_typeSelectionModel->match( - m_typeSelectionModel->index(0, 1), Qt::DisplayRole, data, 1, Qt::MatchFlags( Qt::MatchExactly )); + m_typeSelectionModel->index(0, 0), Qt::DisplayRole, data, 1, Qt::MatchFlags( Qt::MatchExactly )); if (!indexes.empty()) { cmbbx->setCurrentIndex(indexes.at(0).row()); }