]> git.sesse.net Git - vlc/commitdiff
Qt: Fix native/non-native state of button.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 Jan 2009 22:36:46 +0000 (23:36 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 Jan 2009 22:36:46 +0000 (23:36 +0100)
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.hpp

index f585542712be76b005f369827376a4316192c262..d8554c48bbb9c563f3edb180c0c70281f44d2966 100644 (file)
@@ -58,7 +58,6 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
     flatBox = new QCheckBox( qtr( "Flat Button" ) );
     bigBox = new QCheckBox( qtr( "Big Button" ) );
     shinyBox = new QCheckBox( qtr( "Native Slider" ) );
-    shinyBox->setChecked( true );
 
     boxLayout->addWidget( new WidgetListing( p_intf, this ), 0, 0, 1, -1);
     boxLayout->addWidget( flatBox, 1, 0 );
index 1fb3560ea48f621b06e062bd4ee805897d4de0ae..31da994f97ddd864be01171efe1885149877bf28 100644 (file)
@@ -60,7 +60,7 @@ public:
     virtual ~ToolbarEditDialog();
     int getOptions() { return flatBox->isChecked() * WIDGET_FLAT +
                         bigBox->isChecked() * WIDGET_BIG +
-                        shinyBox->isChecked() * WIDGET_SHINY; }
+                        !shinyBox->isChecked() * WIDGET_SHINY; }
 private:
     ToolbarEditDialog( intf_thread_t * );
     static ToolbarEditDialog *instance;