summaryrefslogtreecommitdiffstats
path: root/gui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r--gui/mainwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index 875cc256..ff9d0461 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -24,6 +24,10 @@ MainWindow::MainWindow(QWidget *parent) :
ui(new Ui::MainWindow)
{
ui->setupUi(this);
+ instList.loadInstances("instances");
+
+ model.setInstanceList(&instList);
+ ui->instListView->setModel(&model);
}
MainWindow::~MainWindow()
@@ -43,7 +47,7 @@ void MainWindow::on_actionViewInstanceFolder_triggered()
void MainWindow::on_actionRefresh_triggered()
{
-
+ instList.loadInstances("instances");
}
void MainWindow::on_actionViewCentralModsFolder_triggered()