summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xquvi.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/quvi.sh b/quvi.sh
index bb5f5d0..8ff22ce 100755
--- a/quvi.sh
+++ b/quvi.sh
@@ -56,6 +56,9 @@ elif [[ ${#format_array[@]} == 1 ]]; then
format="${format_array[0]}"
else
format=$(zenity --text "Which format do you want?" --list --column=format default best "${format_array[@]}")
+ if [[ $? != 0 ]]; then # Zenity window closed
+ exit 0
+ fi
fi
quvi -f "$format" --exec "$exec" -v mute "$DWB_URI"