/*****************************************************************************
* profile_selector.cpp : A small profile selector and editor
****************************************************************************
- * Copyright (C) 2009 the VideoLAN team
+ * Copyright (C) 2007-2009 the VideoLAN team
+ * Copyright (C) 2007 Société des arts technologiques
+ * Copyright (C) 2007 Savoir-faire Linux
* $Id$
*
* Authors: Jean-Baptiste Kempf <jb@videolan.org>
+ * Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
void ConvertDialog::cancel()
{
- hide();
+ reject();
}
void ConvertDialog::close()
",dst='" + fileLine->text() + "'}";
msg_Dbg( p_intf, "Transcode MRL: %s", qtu( mrl ) );
+ accept();
}
/*****************************************************************************
* sout.cpp : Stream output dialog ( old-style )
****************************************************************************
- * Copyright (C) 2007-2008 the VideoLAN team
- * Copyright (C) 2007 Société des arts technologiques
- * Copyright (C) 2007 Savoir-faire Linux
+ * Copyright (C) 2007-2009 the VideoLAN team
*
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Jean-Baptiste Kempf <jb@videolan.org>
- * Jean-François Massol <jf.massol -at- gmail.com>
- * Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
{
SoutDialog *s = SoutDialog::getInstance( parent, p_intf, mrl );
if( s->exec() == QDialog::Accepted )
- psz_option = qtu( s->getMrl() );
- }else {
+ {
+ psz_option = strdup( qtu( s->getMrl() ) );
+ delete s;
+ }
+ else
+ {
+ delete s;
+ return;
+ }
+ } else {
ConvertDialog *s = new ConvertDialog( parent, p_intf, mrl );
if( s->exec() == QDialog::Accepted )
- psz_option = qtu( s->getMrl() );
+ {
+ psz_option = strdup( qtu( s->getMrl() ) );
+ delete s;
+ }
+ else
+ {
+ delete s;
+ return;
+ }
}
-
if( !EMPTY_STR( psz_option ) )
{