fix: headword dialog assert exception

This commit is contained in:
Xiao YiFang 2022-10-05 15:42:08 +08:00
parent 53ce63fbf5
commit 034e5e8378

View file

@ -81,12 +81,12 @@ void HeadwordListModel::requestFinished()
filtered << w;
}
}
if( filtered.isEmpty() )
return;
beginInsertRows( QModelIndex(), words.size(), words.size() + filtered.count() - 1 );
for( const auto & word : filtered )
words.append( word );
endInsertRows();
}
}