Replace duplicate beginResetModel with endResetModel
The initialize method was calling beginResetModel twice without
a corresponding endResetModel call. This could cause model state
inconsistencies.
(cherry picked from commit 4e0b295f66)
Co-authored-by: Wang Yu <wangyu@uniontech.com>
This commit is contained in:
@@ -176,7 +176,7 @@ void ServerListModel::initialize()
|
|||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
});
|
});
|
||||||
beginResetModel();
|
endResetModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "moc_serverlistmodel.cpp"
|
#include "moc_serverlistmodel.cpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user