From 2adc7c34918d4a040681363b8bfd8b9a4637c786 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Mon, 13 Mar 2017 16:39:07 -1000 Subject: [PATCH] Fix #302 - TypeError when selecting MC install --- src/mcedit2/util/minecraftinstall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcedit2/util/minecraftinstall.py b/src/mcedit2/util/minecraftinstall.py index 22e3471..fdfdec4 100644 --- a/src/mcedit2/util/minecraftinstall.py +++ b/src/mcedit2/util/minecraftinstall.py @@ -760,13 +760,13 @@ class MinecraftInstallsDialog(QtGui.QDialog, Ui_installsWidget): def removeInstall(self): row = self.minecraftInstallsTable.currentRow() - path = self.minecraftInstallsTable.item(row, 2).data() + path = self.minecraftInstallsTable.item(row, 2).data(Qt.EditRole) GetInstalls().removeInstall(path) self.minecraftInstallsTable.removeRow(row) def selectInstall(self): row = self.minecraftInstallsTable.currentRow() - path = self.minecraftInstallsTable.item(row, 2).data() + path = self.minecraftInstallsTable.item(row, 2).data(Qt.EditRole) currentInstallOption.setValue(path) self._hiliteRow(row)