Improve error handling
This commit is contained in:
parent
457b09f15c
commit
80272e81c3
5 changed files with 68 additions and 84 deletions
|
|
@ -166,7 +166,8 @@ QVariant TablesTableModel::data(const QModelIndex &index, int role) const
|
|||
return getData(index);
|
||||
else if (role == CustomDataTypeRole)
|
||||
return getType(index.column());
|
||||
else if (role == CustomDataMeaningRole) {
|
||||
else if (role == CustomDataMeaningRole)
|
||||
{
|
||||
switch (index.column()) {
|
||||
case TotalSizeCol:
|
||||
case TableSizeCol:
|
||||
|
|
@ -191,9 +192,7 @@ void TablesTableModel::StartLoadTableSizes(std::map<Oid, int> oidIndex)
|
|||
.then(qApp, [p, oidIndex] (TableSizes sizes)
|
||||
{
|
||||
if (p)
|
||||
{
|
||||
p.data()->PopulateSizes(std::move(oidIndex), std::move(sizes));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue