mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
Workaround for crash while exiting the application.
This commit is contained in:
parent
619b5206cd
commit
ece34a1baa
@ -14,7 +14,9 @@ CSMWorld::IdTable::IdTable (CollectionBase *idCollection, unsigned int features)
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
CSMWorld::IdTable::~IdTable()
|
CSMWorld::IdTable::~IdTable()
|
||||||
{}
|
{
|
||||||
|
mIdCollection = 0; // FIXME: workaround only, should stop QHideEvent calling after destruction
|
||||||
|
}
|
||||||
|
|
||||||
int CSMWorld::IdTable::rowCount (const QModelIndex & parent) const
|
int CSMWorld::IdTable::rowCount (const QModelIndex & parent) const
|
||||||
{
|
{
|
||||||
@ -81,6 +83,10 @@ QVariant CSMWorld::IdTable::headerData (int section,
|
|||||||
|
|
||||||
QVariant CSMWorld::IdTable::nestedHeaderData(int section, int subSection, Qt::Orientation orientation, int role) const
|
QVariant CSMWorld::IdTable::nestedHeaderData(int section, int subSection, Qt::Orientation orientation, int role) const
|
||||||
{
|
{
|
||||||
|
// FIXME: workaround only, should stop QHideEvent calling after destruction
|
||||||
|
if (section < 0 || !mIdCollection || section >= mIdCollection->getColumns())
|
||||||
|
return QVariant();
|
||||||
|
|
||||||
const NestColumn& parentColumn = dynamic_cast<const NestColumn&>(mIdCollection->getColumn(section));
|
const NestColumn& parentColumn = dynamic_cast<const NestColumn&>(mIdCollection->getColumn(section));
|
||||||
|
|
||||||
if (orientation==Qt::Vertical)
|
if (orientation==Qt::Vertical)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user