Commit d2bf9548 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: make open dialog modal.

This ensure consistency with simple Open.
Moreover, with those KDE effects, this is cool.
parent 4bea3fe8
...@@ -51,14 +51,11 @@ OpenDialog* OpenDialog::getInstance( QWidget *parent, intf_thread_t *p_intf, ...@@ -51,14 +51,11 @@ OpenDialog* OpenDialog::getInstance( QWidget *parent, intf_thread_t *p_intf,
else if( !b_rawInstance ) else if( !b_rawInstance )
{ {
/* Request the instance but change small details: /* Request the instance but change small details:
- Button menu - Button menu */
- Modality on top of the parent dialog */
if( b_selectMode ) if( b_selectMode )
{
instance->setWindowModality( Qt::WindowModal );
_action_flag = SELECT; /* This should be useless, but we never know _action_flag = SELECT; /* This should be useless, but we never know
if the call is correct */ if the call is correct */
} instance->setWindowModality( Qt::WindowModal );
instance->i_action_flag = _action_flag; instance->i_action_flag = _action_flag;
instance->b_pl = _b_pl; instance->b_pl = _b_pl;
instance->setMenuAction(); instance->setMenuAction();
...@@ -76,14 +73,12 @@ OpenDialog::OpenDialog( QWidget *parent, ...@@ -76,14 +73,12 @@ OpenDialog::OpenDialog( QWidget *parent,
b_pl =_b_pl; b_pl =_b_pl;
if( b_selectMode ) /* Select mode */ if( b_selectMode ) /* Select mode */
{
i_action_flag = SELECT; i_action_flag = SELECT;
setWindowModality( Qt::WindowModal );
}
/* Basic Creation of the Window */ /* Basic Creation of the Window */
ui.setupUi( this ); ui.setupUi( this );
setWindowTitle( qtr( "Open Media" ) ); setWindowTitle( qtr( "Open Media" ) );
setWindowModality( Qt::WindowModal );
/* Tab definition and creation */ /* Tab definition and creation */
fileOpenPanel = new FileOpenPanel( this, p_intf ); fileOpenPanel = new FileOpenPanel( this, p_intf );
......
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