Commit c5ae3b36 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

Qt: plugins: close() is RejectRole

(cherry picked from commit 17779413)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1d1e3428
...@@ -72,7 +72,7 @@ PluginDialog::PluginDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -72,7 +72,7 @@ PluginDialog::PluginDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
QDialogButtonBox *box = new QDialogButtonBox; QDialogButtonBox *box = new QDialogButtonBox;
QPushButton *okButton = new QPushButton( qtr( "&Close" ), this ); QPushButton *okButton = new QPushButton( qtr( "&Close" ), this );
box->addButton( okButton, QDialogButtonBox::AcceptRole ); box->addButton( okButton, QDialogButtonBox::RejectRole );
layout->addWidget( box ); layout->addWidget( box );
BUTTONACT( okButton, close() ); BUTTONACT( okButton, close() );
readSettings( "PluginsDialog", QSize( 435, 280 ) ); readSettings( "PluginsDialog", QSize( 435, 280 ) );
...@@ -567,7 +567,7 @@ ExtensionInfoDialog::ExtensionInfoDialog( const ExtensionCopy& extension, ...@@ -567,7 +567,7 @@ ExtensionInfoDialog::ExtensionInfoDialog( const ExtensionCopy& extension,
// Close button // Close button
QDialogButtonBox *group = new QDialogButtonBox( this ); QDialogButtonBox *group = new QDialogButtonBox( this );
QPushButton *closeButton = new QPushButton( qtr( "&Close" ) ); QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
group->addButton( closeButton, QDialogButtonBox::AcceptRole ); group->addButton( closeButton, QDialogButtonBox::RejectRole );
BUTTONACT( closeButton, close() ); BUTTONACT( closeButton, close() );
layout->addWidget( group, 7, 0, 1, -1 ); layout->addWidget( group, 7, 0, 1, -1 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment