Merge pull request #448 from TheLastRar/fixup-warnings

This commit is contained in:
flow
2022-11-14 14:15:46 -08:00
committed by GitHub
26 changed files with 114 additions and 119 deletions

View File

@ -400,11 +400,11 @@ public:
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const override
{
return m_servers.size();
return parent.isValid() ? 0 : m_servers.size();
}
int columnCount(const QModelIndex & parent) const override
{
return COLUMN_COUNT;
return parent.isValid() ? 0 : COLUMN_COUNT;
}
Server * at(int index)