mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-17 13:37:18 +03:00
Fix bug
This commit is contained in:
parent
986cbf140e
commit
c836908b9e
@ -113,7 +113,7 @@ int DiffTreeModel::rowCount(const QModelIndex &parent) const {
|
||||
|
||||
QVariant DiffTreeModel::headerData(int section, Qt::Orientation orientation,
|
||||
int role) const {
|
||||
if (section > 2) {
|
||||
if (section > 2 || section < 0) {
|
||||
assert(false);
|
||||
return QVariant();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user