WorldList no longer reloads the world if the selected world is clicked again

This commit is contained in:
David Vierra 2015-03-22 18:36:29 -10:00
parent eec86d3489
commit 28839b6d96

View File

@ -276,9 +276,11 @@ class WorldListWidget(QtGui.QDialog):
def openWorldClicked(self):
QtGui.qApp.chooseOpenWorld()
_currentFilename = None
def worldListItemClicked(self, index):
filename = index.data()
if filename:
if filename != self._currentFilename:
self._currentFilename = filename
self.showWorld(filename)
def showWorld(self, filename):