WorldList no longer reloads the world if the selected world is clicked again
This commit is contained in:
parent
eec86d3489
commit
28839b6d96
@ -276,9 +276,11 @@ class WorldListWidget(QtGui.QDialog):
|
|||||||
def openWorldClicked(self):
|
def openWorldClicked(self):
|
||||||
QtGui.qApp.chooseOpenWorld()
|
QtGui.qApp.chooseOpenWorld()
|
||||||
|
|
||||||
|
_currentFilename = None
|
||||||
def worldListItemClicked(self, index):
|
def worldListItemClicked(self, index):
|
||||||
filename = index.data()
|
filename = index.data()
|
||||||
if filename:
|
if filename != self._currentFilename:
|
||||||
|
self._currentFilename = filename
|
||||||
self.showWorld(filename)
|
self.showWorld(filename)
|
||||||
|
|
||||||
def showWorld(self, filename):
|
def showWorld(self, filename):
|
||||||
|
Reference in New Issue
Block a user