0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-10 22:20:37 +03:00

Windows build has been fixed

This commit is contained in:
Arin Alex
2025-07-27 17:41:20 +03:00
parent 34d68b1050
commit 2b20232384
5 changed files with 22 additions and 6 deletions

View File

@@ -25,8 +25,8 @@ QModelIndex CompleterModel::index(int row, int column, const QModelIndex& parent
QModelIndex CompleterModel::parent(const QModelIndex& child) const
{
if (child.isValid()) {
if (CompleterItem* childItem = static_cast<CompleterItem*>(child.internalPointer());
childItem) {
CompleterItem* childItem = static_cast<CompleterItem*>(child.internalPointer());
if (childItem) {
CompleterItem* parentItem = childItem->parent();
if (parentItem != &m_root) {
return indexFromItem(parentItem);