Enable frame by frame button only when video is present.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 25 Nov 2008 18:31:33 +0000 (19:31 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 25 Nov 2008 18:31:33 +0000 (19:31 +0100)
modules/gui/qt4/components/controller.cpp

index 895dec6..599b543 100644 (file)
@@ -255,7 +255,7 @@ QWidget *AbstractController::createWidget( buttonType_e button, int* i_size,
         setupButton( frameButton );
         CONNECT_MAP_SET( frameButton, FRAME_ACTION );
         BUTTON_SET_BAR( frameButton, frame, qtr( "Frame by frame" ) );
-        ENABLE_ON_INPUT( frameButton );
+        ENABLE_ON_VIDEO( frameButton );
         widget = frameButton;
         }
         break;