summaryrefslogtreecommitdiffstats
path: root/logic/DerpVersion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/DerpVersion.cpp')
-rw-r--r--logic/DerpVersion.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/logic/DerpVersion.cpp b/logic/DerpVersion.cpp
index f13ac620..cabb2b24 100644
--- a/logic/DerpVersion.cpp
+++ b/logic/DerpVersion.cpp
@@ -22,6 +22,7 @@
DerpVersion::DerpVersion(DerpInstance *instance, QObject *parent)
: QAbstractListModel(parent), m_instance(instance)
{
+ clear();
}
bool DerpVersion::reload(QWidget *widgetParent)
@@ -29,6 +30,20 @@ bool DerpVersion::reload(QWidget *widgetParent)
return DerpVersionBuilder::build(this, m_instance, widgetParent);
}
+void DerpVersion::clear()
+{
+ id.clear();
+ time.clear();
+ releaseTime.clear();
+ type.clear();
+ assets.clear();
+ processArguments.clear();
+ minecraftArguments.clear();
+ minimumLauncherVersion = 0xDEADBEAF;
+ mainClass.clear();
+ libraries.clear();
+}
+
QList<std::shared_ptr<DerpLibrary> > DerpVersion::getActiveNormalLibs()
{
QList<std::shared_ptr<DerpLibrary> > output;