diff options
Diffstat (limited to 'launcher/minecraft/WorldList.cpp')
| -rw-r--r-- | launcher/minecraft/WorldList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/minecraft/WorldList.cpp b/launcher/minecraft/WorldList.cpp index dcdbc32147..130f221e6f 100644 --- a/launcher/minecraft/WorldList.cpp +++ b/launcher/minecraft/WorldList.cpp @@ -197,7 +197,7 @@ QVariant WorldList::data(const QModelIndex &index, int role) const } case SeedRole: { - return qVariantFromValue<qlonglong>(world.seed()); + return QVariant::fromValue<qlonglong>(world.seed()); } case NameRole: { @@ -286,7 +286,7 @@ protected: urls.append(QUrl::fromLocalFile(worldPath)); } const_cast<WorldMimeData*>(this)->setUrls(urls); - return QMimeData::retrieveData(mimetype, type); + return QMimeData::retrieveData(mimetype, QMetaType(type)); } private: QList<World> m_worlds; |
