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 f585542..d8554c4 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 1fb3560..31da994 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;