*** empty log message ***
[booh] / bin / booh-gui
index c29349fff5f8274dbb41f83bdcc9b069555df6cc..89a08e575f7b81a295dea875d37e9b07c02f6689 100755 (executable)
@@ -130,7 +130,7 @@ def view_element(filename)
     #- typically this file won't exist in case of videos; try with the largest thumbnail around
     if !File.exists?(dest_img)
         alternatives = Dir[build_full_dest_filename(filename).sub(/\.[^\.]+$/, '') + '-*'].sort
-        if alternatives
+        if not alternatives.empty?
             dest_img = alternatives[-1]
         else
             return