summaryrefslogtreecommitdiffstats
path: root/gui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r--gui/mainwindow.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index 47753b37..e60155c6 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -40,6 +40,7 @@
#include "gui/browserdialog.h"
#include "gui/aboutdialog.h"
#include "gui/versionselectdialog.h"
+#include "gui/lwjglselectdialog.h"
#include "gui/consolewindow.h"
#include "kcategorizedview.h"
@@ -59,6 +60,7 @@
#include "instancedelegate.h"
#include "minecraftversionlist.h"
+#include "lwjglversionlist.h"
// Opens the given file in the default application.
// TODO: Move this somewhere.
@@ -140,6 +142,11 @@ MainWindow::MainWindow ( QWidget *parent ) :
m_versionLoadTask = MinecraftVersionList::getMainList().getLoadTask();
startTask(m_versionLoadTask);
}
+
+ if (!LWJGLVersionList::get().isLoaded())
+ {
+ LWJGLVersionList::get().loadList();
+ }
}
MainWindow::~MainWindow()
@@ -460,3 +467,17 @@ void MainWindow::on_actionChangeInstMCVersion_triggered()
inst->setIntendedVersion(vselect->selectedVersion()->descriptor());
}
}
+
+void MainWindow::on_actionChangeInstLWJGLVersion_triggered()
+{
+ Instance *inst = selectedInstance();
+
+ if (!inst)
+ return;
+
+ LWJGLSelectDialog *lselect = new LWJGLSelectDialog(this);
+ if (lselect->exec())
+ {
+
+ }
+}