summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-02-01 22:32:48 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-02-01 22:32:48 +0100
commit790402bdce96a4ce67b32d228aa251fc4d184f5e (patch)
treeb5bcc32e0247f0f539bcc84e8fac8b0fdc3c9bb0 /gui
parent983a40698c47739fee3786cf54c917004523ea36 (diff)
downloadMultiMC-790402bdce96a4ce67b32d228aa251fc4d184f5e.tar
MultiMC-790402bdce96a4ce67b32d228aa251fc4d184f5e.tar.gz
MultiMC-790402bdce96a4ce67b32d228aa251fc4d184f5e.tar.lz
MultiMC-790402bdce96a4ce67b32d228aa251fc4d184f5e.tar.xz
MultiMC-790402bdce96a4ce67b32d228aa251fc4d184f5e.zip
Disable anything related to user.json for now. Will be re-enabled once we have a gui for it.
Diffstat (limited to 'gui')
-rw-r--r--gui/dialogs/OneSixModEditDialog.cpp20
-rw-r--r--gui/dialogs/OneSixModEditDialog.h1
-rw-r--r--gui/dialogs/OneSixModEditDialog.ui16
3 files changed, 1 insertions, 36 deletions
diff --git a/gui/dialogs/OneSixModEditDialog.cpp b/gui/dialogs/OneSixModEditDialog.cpp
index 1742ff80..41ac5d8d 100644
--- a/gui/dialogs/OneSixModEditDialog.cpp
+++ b/gui/dialogs/OneSixModEditDialog.cpp
@@ -109,26 +109,6 @@ void OneSixModEditDialog::disableVersionControls()
ui->mainClassEdit->setText("");
}
-void OneSixModEditDialog::on_userEditorBtn_clicked()
-{
- QDir root(m_inst->instanceRoot());
- if (!root.exists("user.json"))
- {
- QFile file(root.absoluteFilePath("user.json"));
- if (!file.open(QFile::WriteOnly))
- {
- QMessageBox::critical(this, tr("Error"), tr("Couldn't write a skeletion user.json file: %1").arg(file.errorString()));
- return;
- }
- file.write("{\n}");
- file.close();
- }
- if (!MMC->openJsonEditor(root.absoluteFilePath("user.json")))
- {
- QMessageBox::warning(this, tr("Error"), tr("Unable to open user.json, check the settings"));
- }
-}
-
void OneSixModEditDialog::on_reloadLibrariesBtn_clicked()
{
m_inst->reloadVersion(this);
diff --git a/gui/dialogs/OneSixModEditDialog.h b/gui/dialogs/OneSixModEditDialog.h
index 7e759f48..a7def967 100644
--- a/gui/dialogs/OneSixModEditDialog.h
+++ b/gui/dialogs/OneSixModEditDialog.h
@@ -45,7 +45,6 @@ slots:
void on_buttonBox_rejected();
void on_forgeBtn_clicked();
void on_liteloaderBtn_clicked();
- void on_userEditorBtn_clicked();
void on_reloadLibrariesBtn_clicked();
void on_removeLibraryBtn_clicked();
void updateVersionControls();
diff --git a/gui/dialogs/OneSixModEditDialog.ui b/gui/dialogs/OneSixModEditDialog.ui
index d90c6d93..b97fa323 100644
--- a/gui/dialogs/OneSixModEditDialog.ui
+++ b/gui/dialogs/OneSixModEditDialog.ui
@@ -44,7 +44,7 @@
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<attribute name="headerVisible">
- <bool>true</bool>
+ <bool>false</bool>
</attribute>
</widget>
</item>
@@ -109,20 +109,6 @@
</widget>
</item>
<item>
- <widget class="Line" name="line_2">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="userEditorBtn">
- <property name="text">
- <string>Open user.json</string>
- </property>
- </widget>
- </item>
- <item>
<spacer name="verticalSpacer_7">
<property name="orientation">
<enum>Qt::Vertical</enum>