mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Fixed error when clicking an empty search list.
This commit is contained in:
parent
de47580559
commit
fc34af4289
3 changed files with 6 additions and 0 deletions
pysollib/tile
|
@ -490,6 +490,8 @@ class SelectCardsetDialogWithPreview(MfxDialog):
|
||||||
pos += 1
|
pos += 1
|
||||||
|
|
||||||
def selectSearchResult(self, event):
|
def selectSearchResult(self, event):
|
||||||
|
if self.list.size() <= 0:
|
||||||
|
return
|
||||||
oldcur = self.list["cursor"]
|
oldcur = self.list["cursor"]
|
||||||
self.list["cursor"] = "watch"
|
self.list["cursor"] = "watch"
|
||||||
sel = self.list.get(self.list.curselection())
|
sel = self.list.get(self.list.curselection())
|
||||||
|
|
|
@ -534,6 +534,8 @@ class SelectGameDialogWithPreview(SelectGameDialog):
|
||||||
pos += 1
|
pos += 1
|
||||||
|
|
||||||
def selectSearchResult(self, event):
|
def selectSearchResult(self, event):
|
||||||
|
if self.list.size() <= 0:
|
||||||
|
return
|
||||||
oldcur = self.list["cursor"]
|
oldcur = self.list["cursor"]
|
||||||
self.list["cursor"] = "watch"
|
self.list["cursor"] = "watch"
|
||||||
sel = self.list.get(self.list.curselection())
|
sel = self.list.get(self.list.curselection())
|
||||||
|
|
|
@ -268,6 +268,8 @@ class SelectTileDialogWithPreview(MfxDialog):
|
||||||
pos += 1
|
pos += 1
|
||||||
|
|
||||||
def selectSearchResult(self, event):
|
def selectSearchResult(self, event):
|
||||||
|
if self.list.size() <= 0:
|
||||||
|
return
|
||||||
oldcur = self.list["cursor"]
|
oldcur = self.list["cursor"]
|
||||||
self.list["cursor"] = "watch"
|
self.list["cursor"] = "watch"
|
||||||
sel = self.list.get(self.list.curselection())
|
sel = self.list.get(self.list.curselection())
|
||||||
|
|
Loading…
Add table
Reference in a new issue