diff --git a/launcher/ui/dialogs/ExportMrPackDialog.cpp b/launcher/ui/dialogs/ExportMrPackDialog.cpp
index eb53a61f8..735a6245d 100644
--- a/launcher/ui/dialogs/ExportMrPackDialog.cpp
+++ b/launcher/ui/dialogs/ExportMrPackDialog.cpp
@@ -23,6 +23,16 @@ ExportMrPackDialog::ExportMrPackDialog(InstancePtr instance, QWidget* parent)
: QDialog(parent), instance(instance), ui(new Ui::ExportMrPackDialog)
{
ui->setupUi(this);
+ ui->name->setText(instance->name());
+}
+
+void ExportMrPackDialog::done(int result) {
+ if (result != Accepted) {
+ QDialog::done(result);
+ return;
+ }
+ QDialog::done(result);
+
}
ExportMrPackDialog::~ExportMrPackDialog()
diff --git a/launcher/ui/dialogs/ExportMrPackDialog.h b/launcher/ui/dialogs/ExportMrPackDialog.h
index 78322a8f7..31ab86ff1 100644
--- a/launcher/ui/dialogs/ExportMrPackDialog.h
+++ b/launcher/ui/dialogs/ExportMrPackDialog.h
@@ -32,6 +32,8 @@ class ExportMrPackDialog : public QDialog {
explicit ExportMrPackDialog(InstancePtr instance, QWidget* parent = nullptr);
~ExportMrPackDialog();
+ void done(int result) override;
+
private:
InstancePtr instance;
Ui::ExportMrPackDialog* ui;
diff --git a/launcher/ui/dialogs/ExportMrPackDialog.ui b/launcher/ui/dialogs/ExportMrPackDialog.ui
index 2b5539873..37c87158a 100644
--- a/launcher/ui/dialogs/ExportMrPackDialog.ui
+++ b/launcher/ui/dialogs/ExportMrPackDialog.ui
@@ -28,7 +28,7 @@
-
-
+
-
@@ -45,10 +45,10 @@
-
-
+
-
-
+
@@ -72,6 +72,45 @@
+
+ name
+ version
+ summary
+ treeView
+
-
+
+
+ buttonBox
+ accepted()
+ ExportMrPackDialog
+ accept()
+
+
+ 324
+ 390
+
+
+ 324
+ 206
+
+
+
+
+ buttonBox
+ rejected()
+ ExportMrPackDialog
+ reject()
+
+
+ 324
+ 390
+
+
+ 324
+ 206
+
+
+
+