aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/WorldList.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/minecraft/WorldList.h')
-rw-r--r--launcher/minecraft/WorldList.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/WorldList.h b/launcher/minecraft/WorldList.h
index 5138e583..08294755 100644
--- a/launcher/minecraft/WorldList.h
+++ b/launcher/minecraft/WorldList.h
@@ -54,7 +54,7 @@ public:
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const
{
- return size();
+ return parent.isValid() ? 0 : static_cast<int>(size());
};
virtual QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const;