summaryrefslogtreecommitdiffstats
path: root/application/dialogs/CopyInstanceDialog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-07-31 01:54:08 +0200
committerPetr Mrázek <peterix@gmail.com>2018-07-31 01:54:08 +0200
commit0c73ddee73e7383d5b81185381fa1c762fcb1147 (patch)
tree7193eb7bdd3e836ab8f150d3575d866bb2df3d9d /application/dialogs/CopyInstanceDialog.cpp
parent9965decd81b8e8ca98d610f605263ccf4ce541e1 (diff)
downloadMultiMC-0c73ddee73e7383d5b81185381fa1c762fcb1147.tar
MultiMC-0c73ddee73e7383d5b81185381fa1c762fcb1147.tar.gz
MultiMC-0c73ddee73e7383d5b81185381fa1c762fcb1147.tar.lz
MultiMC-0c73ddee73e7383d5b81185381fa1c762fcb1147.tar.xz
MultiMC-0c73ddee73e7383d5b81185381fa1c762fcb1147.zip
NOISSUE set groups for instances by not setting groups for instances
So simple. Better in every way.
Diffstat (limited to 'application/dialogs/CopyInstanceDialog.cpp')
-rw-r--r--application/dialogs/CopyInstanceDialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/dialogs/CopyInstanceDialog.cpp b/application/dialogs/CopyInstanceDialog.cpp
index b16684c6..78f7512e 100644
--- a/application/dialogs/CopyInstanceDialog.cpp
+++ b/application/dialogs/CopyInstanceDialog.cpp
@@ -45,7 +45,7 @@ CopyInstanceDialog::CopyInstanceDialog(InstancePtr original, QWidget *parent)
groupList.removeOne("");
groupList.push_front("");
ui->groupBox->addItems(groupList);
- int index = groupList.indexOf(m_original->group());
+ int index = groupList.indexOf(MMC->instances()->getInstanceGroup(m_original->id()));
if(index == -1)
{
index = 0;