summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/OneSixModEditDialog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-03-31 00:19:43 +0200
committerPetr Mrázek <peterix@gmail.com>2014-03-31 00:19:43 +0200
commit29b00eab311064a6ae1512c3c35144c33e7f8ac3 (patch)
treee4134b1e8c1eeb9b18920097187cbbc7bff207ef /gui/dialogs/OneSixModEditDialog.cpp
parenta3c95d9bcc581d74e3d8bfa6e1d3db0478b209f9 (diff)
downloadMultiMC-29b00eab311064a6ae1512c3c35144c33e7f8ac3.tar
MultiMC-29b00eab311064a6ae1512c3c35144c33e7f8ac3.tar.gz
MultiMC-29b00eab311064a6ae1512c3c35144c33e7f8ac3.tar.lz
MultiMC-29b00eab311064a6ae1512c3c35144c33e7f8ac3.tar.xz
MultiMC-29b00eab311064a6ae1512c3c35144c33e7f8ac3.zip
Fix FTB-related issues0.3.1
Diffstat (limited to 'gui/dialogs/OneSixModEditDialog.cpp')
-rw-r--r--gui/dialogs/OneSixModEditDialog.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/gui/dialogs/OneSixModEditDialog.cpp b/gui/dialogs/OneSixModEditDialog.cpp
index 2d459001..d7791d71 100644
--- a/gui/dialogs/OneSixModEditDialog.cpp
+++ b/gui/dialogs/OneSixModEditDialog.cpp
@@ -199,7 +199,17 @@ void OneSixModEditDialog::on_moveLibraryDownBtn_clicked()
void OneSixModEditDialog::on_forgeBtn_clicked()
{
// FIXME: use actual model, not reloading. Move logic to model.
-
+ if (m_version->hasFtbPack())
+ {
+ if (QMessageBox::question(this, tr("Revert?"),
+ tr("This action will remove the FTB pack version patch. Continue?")) !=
+ QMessageBox::Yes)
+ {
+ return;
+ }
+ m_version->removeFtbPack();
+ reloadInstanceVersion();
+ }
if (m_version->isCustom())
{
if (QMessageBox::question(this, tr("Revert?"),
@@ -224,6 +234,17 @@ void OneSixModEditDialog::on_forgeBtn_clicked()
void OneSixModEditDialog::on_liteloaderBtn_clicked()
{
+ if (m_version->hasFtbPack())
+ {
+ if (QMessageBox::question(this, tr("Revert?"),
+ tr("This action will remove the FTB pack version patch. Continue?")) !=
+ QMessageBox::Yes)
+ {
+ return;
+ }
+ m_version->removeFtbPack();
+ reloadInstanceVersion();
+ }
if (m_version->isCustom())
{
if (QMessageBox::question(this, tr("Revert?"),