* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
******************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#include "dialogs/mediainfo.hpp"
#include "input_manager.hpp"
b_cleaned = true;
i_runs = 0;
- setWindowTitle( qtr( "Media information" ) );
+ setWindowTitle( qtr( "Media Information" ) );
resize( 600 , 480 );
/* TabWidgets and Tabs creation */
closeButton->setDefault( true );
uriLine = new QLineEdit;
- QLabel *uriLabel = new QLabel( qtr( "Location :" ) );
+ QLabel *uriLabel = new QLabel( qtr( "Location:" ) );
layout->addWidget( IT, 0, 0, 1, 8 );
layout->addWidget( uriLabel, 1, 0, 1, 1 );
BUTTONACT( closeButton, close() );
/* The tabs buttons are shown in the main dialog for space and cosmetics */
- CONNECT( saveMetaButton, clicked(), this, saveMeta() );
+ BUTTONACT( saveMetaButton, saveMeta() );
/* Let the MetaData Panel update the URI */
CONNECT( MP, uriSet( QString ), uriLine, setText( QString ) );
CONNECT( THEMIM, inputChanged( input_thread_t * ),
this, update( input_thread_t * ) );
- p_item = input_GetItem( THEMIM->getInput() );
+ if( THEMIM->getInput() )
+ p_item = input_GetItem( THEMIM->getInput() );
}
/* Call update by hand, so info is shown from current item too */
vlc_object_release( p_input );
}
-void MediaInfoDialog::updateOnTimeOut()
+void MediaInfoDialog::updateOnTimeOut()
{
- /* Timer runs at 150 ms, dont' update more than 2 times per second */
- i_runs++;
- if( i_runs % 4 != 0 ) return;
+ /* Timer runs at 150 ms, dont' update more than 2 times per second */
+ i_runs++;
+ if( i_runs % 4 != 0 ) return;
- /* Get Input and clear if non-existant */
- input_thread_t *p_input = THEMIM->getInput();
+ /* Get Input and clear if non-existant */
+ input_thread_t *p_input = THEMIM->getInput();
if( p_input && !p_input->b_dead )
{
void MediaInfoDialog::close()
{
- this->toggleVisible();
+ toggleVisible();
/* if dialog is closed, revert editing if not saved */
if( MP->isInEditMode() )