summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-01-13 14:15:34 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-09-26 17:13:58 +0100
commit3e3795068eca569c3ce5748735f3a61732ae5b6d (patch)
tree29ca70642cd6b2f5b631d7c0de29cc7051372063
parentbbeaad89bdd9b810f80ddcd29a8290493546a9d3 (diff)
remuxer.py: do not crash when clicking open without having selected a file
https://bugzilla.gnome.org/show_bug.cgi?id=639421
-rw-r--r--examples/remuxer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/remuxer.py b/examples/remuxer.py
index 096344a..31d4606 100644
--- a/examples/remuxer.py
+++ b/examples/remuxer.py
@@ -722,7 +722,7 @@ class PlayerWindow(gtk.Window):
uri = chooser.get_uri()
chooser.destroy()
- if resp == SUCCESS:
+ if resp == SUCCESS and uri != None:
self.load_file(uri)
return True
else: