Commit ec6749f1 authored by Clément Stenac's avatar Clément Stenac

Autosave size/position + fix a resizing bug in the stats panel

Cosmetics
parent 7db11385
......@@ -39,7 +39,6 @@ StreamInfoDialog::StreamInfoDialog( intf_thread_t *_p_intf ) :QVLCFrame( _p_intf
i_runs = 0;
setWindowTitle( _("Stream information" ) );
QGridLayout *layout = new QGridLayout(this);
setGeometry(0,0,470,550);
IT = new InfoTab( this, p_intf, true ) ;
QPushButton *closeButton = new QPushButton(qtr("&Close"));
......@@ -51,11 +50,14 @@ StreamInfoDialog::StreamInfoDialog( intf_thread_t *_p_intf ) :QVLCFrame( _p_intf
p_input = NULL;
var_AddCallback( THEPL, "item-change", ItemChanged, this );
readSettings( "StreamInfo" , QSize( 470, 450 ) );
}
StreamInfoDialog::~StreamInfoDialog()
{
var_DelCallback( THEPL, "item-change", ItemChanged, this );
writeSettings( "StreamInfo" );
}
static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
......
......@@ -18,7 +18,8 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
******************************************************************************/
#ifndef _STREAMINFO_DIALOG_H_
#define _STREAMINFO_DIALOG_H_
......@@ -39,6 +40,7 @@ public:
instance = new StreamInfoDialog( p_intf);
return instance;
}
static void killInstance() { if( instance ) delete instance; }
virtual ~StreamInfoDialog();
bool need_update;
private:
......
......@@ -56,6 +56,7 @@ DialogsProvider::DialogsProvider( intf_thread_t *_p_intf ) :
DialogsProvider::~DialogsProvider()
{
PlaylistDialog::killInstance();
StreamInfoDialog::killInstance();
}
void DialogsProvider::customEvent( QEvent *event )
......
This diff is collapsed.
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