]> git.sesse.net Git - vlc/commitdiff
Qt: plugins: close() is RejectRole
authorFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 20 Feb 2012 18:41:08 +0000 (19:41 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 20 Feb 2012 18:41:34 +0000 (19:41 +0100)
modules/gui/qt4/dialogs/plugins.cpp

index 01ce287c183610d7863247349800b5a24a41096f..b6ff89dcf77bb5a3b0cf190a36af59b1b423032a 100644 (file)
@@ -72,7 +72,7 @@ PluginDialog::PluginDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
 
     QDialogButtonBox *box = new QDialogButtonBox;
     QPushButton *okButton = new QPushButton( qtr( "&Close" ), this );
-    box->addButton( okButton, QDialogButtonBox::AcceptRole );
+    box->addButton( okButton, QDialogButtonBox::RejectRole );
     layout->addWidget( box );
     BUTTONACT( okButton, close() );
     readSettings( "PluginsDialog", QSize( 435, 280 ) );
@@ -565,7 +565,7 @@ ExtensionInfoDialog::ExtensionInfoDialog( const ExtensionCopy& extension,
     // Close button
     QDialogButtonBox *group = new QDialogButtonBox( this );
     QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
-    group->addButton( closeButton, QDialogButtonBox::AcceptRole );
+    group->addButton( closeButton, QDialogButtonBox::RejectRole );
     BUTTONACT( closeButton, close() );
 
     layout->addWidget( group, 7, 0, 1, -1 );