Fix #302 - TypeError when selecting MC install

This commit is contained in:
David Vierra 2017-03-13 16:39:07 -10:00
parent c50827d157
commit 2adc7c3491

View File

@ -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)