1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

Merge pull request #28192 from shahkarnav115-beep:fix-sample-launcher-selection

Fix crash in sample launcher when no item is selected
This commit is contained in:
Alexander Smorkalov
2025-12-16 10:21:54 +03:00
committed by GitHub
+5 -1
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 = ""