diff options
author | Andrew <forkk@forkk.net> | 2013-03-28 11:33:31 -0500 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-03-28 11:33:31 -0500 |
commit | 168ed3e8e58a8e5065ffa720f8d45f4cee0f2069 (patch) | |
tree | b673669632797eab3fdf5bbf4e9fa471bcf20290 /gui/mainwindow.cpp | |
parent | ad70e3fd4cda26508f00e9b549c04a5fe8831dac (diff) | |
download | MultiMC-168ed3e8e58a8e5065ffa720f8d45f4cee0f2069.tar MultiMC-168ed3e8e58a8e5065ffa720f8d45f4cee0f2069.tar.gz MultiMC-168ed3e8e58a8e5065ffa720f8d45f4cee0f2069.tar.lz MultiMC-168ed3e8e58a8e5065ffa720f8d45f4cee0f2069.tar.xz MultiMC-168ed3e8e58a8e5065ffa720f8d45f4cee0f2069.zip |
Implemented version lists.
Further work on this is still needed. Currently there is no sorting or filtering of any kind. In addition,
changes need to be made to fix issues with bad ETags since the current system here is based on MultiMC 4's
version list system before it was fixed.
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r-- | gui/mainwindow.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index e691c8c4..ca681098 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -39,6 +39,7 @@ #include "gui/taskdialog.h" #include "gui/browserdialog.h" #include "gui/aboutdialog.h" +#include "gui/versionselectdialog.h" #include "kcategorizedview.h" #include "kcategorydrawer.h" @@ -260,3 +261,15 @@ void openInDefaultProgram ( QString filename ) { QDesktopServices::openUrl ( "file:///" + QFileInfo ( filename ).absolutePath() ); } + +void MainWindow::on_actionChangeInstMCVersion_triggered() +{ + if (view->selectionModel()->selectedIndexes().count() < 1) + return; + + QModelIndex index = view->selectionModel()->selectedIndexes().at(0); + Instance *inst = (Instance *)index.data(InstanceModel::InstancePointerRole).value<void *>(); + + VersionSelectDialog *vselect = new VersionSelectDialog(inst->versionList(), this); + vselect->exec(); +} |