diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-03-03 01:44:07 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-03-03 01:44:07 +0100 |
commit | d66f2500a6b4215a135f1e41802f7c7498375c62 (patch) | |
tree | 2c11de4a7b850bffb2fd7eab8faa9d79990de66f /gui/dialogs | |
parent | 29cdc9364b0153d04a211adf3eab86076174c0a1 (diff) | |
download | MultiMC-d66f2500a6b4215a135f1e41802f7c7498375c62.tar MultiMC-d66f2500a6b4215a135f1e41802f7c7498375c62.tar.gz MultiMC-d66f2500a6b4215a135f1e41802f7c7498375c62.tar.lz MultiMC-d66f2500a6b4215a135f1e41802f7c7498375c62.tar.xz MultiMC-d66f2500a6b4215a135f1e41802f7c7498375c62.zip |
No end in sight :<
Diffstat (limited to 'gui/dialogs')
-rw-r--r-- | gui/dialogs/OneSixModEditDialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/dialogs/OneSixModEditDialog.cpp b/gui/dialogs/OneSixModEditDialog.cpp index d936f3f1..cc383993 100644 --- a/gui/dialogs/OneSixModEditDialog.cpp +++ b/gui/dialogs/OneSixModEditDialog.cpp @@ -175,6 +175,7 @@ void OneSixModEditDialog::on_moveLibraryUpBtn_clicked() order[ourId] = ourNewOrder; order[sortedOrder[sortedOrders[ourIndex - 1]]] = ourOrder; + // FIXME: why is GUI code doing this in particular? why isn't this part of a model? if (!OneSixVersionBuilder::writeOverrideOrders(order, m_inst)) { QMessageBox::critical(this, tr("Error"), tr("Couldn't save the new order")); @@ -185,6 +186,8 @@ void OneSixModEditDialog::on_moveLibraryUpBtn_clicked() ui->libraryTreeView->selectionModel()->select(m_version->index(ourRow - 1), QItemSelectionModel::SelectCurrent); } } + +// FIXME: WHY IS THIS DUPLICATED? void OneSixModEditDialog::on_moveLibraryDownBtn_clicked() { QMap<QString, int> order = getExistingOrder(); @@ -212,6 +215,7 @@ void OneSixModEditDialog::on_moveLibraryDownBtn_clicked() order[ourId] = ourNewOrder; order[sortedOrder[sortedOrders[ourIndex + 1]]] = ourOrder; + // FIXME: why is GUI code doing this in particular? why isn't this part of a model? if (!OneSixVersionBuilder::writeOverrideOrders(order, m_inst)) { QMessageBox::critical(this, tr("Error"), tr("Couldn't save the new order")); |