0
0
mirror of https://github.com/opencv/opencv.git synced 2026-01-18 17:21:42 +01:00

Fix crash in sample launcher when no item is selected

This commit is contained in:
Karnav Shah
2025-12-16 11:30:55 +05:30
parent 7291f638b6
commit 4e2c39b1a0

View File

@@ -112,7 +112,11 @@ class App:
webbrowser.open(url)
def on_demo_select(self, evt):
name = self.demos_lb.get( self.demos_lb.curselection()[0] )
selection = self.demos_lb.curselection()
if not selection:
return
name = self.demos_lb.get(selection[0])
fn = self.samples[name]
descr = ""