Commit 191479d7 authored by Ilkka Ollakka's avatar Ilkka Ollakka

reset editingmode when mediainfo-dialog is closed, still leaves bug when...

reset editingmode when mediainfo-dialog is closed, still leaves bug when dialog is reshown that it doesn't update content
parent b4465b3c
......@@ -40,7 +40,6 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
QVLCFrame( _p_intf ), mainInput(_mainInput),
stats( _stats )
{
i_runs = 0;
p_item = _p_item;
b_cleaned = true;
......@@ -165,6 +164,12 @@ void MediaInfoDialog::close()
{
this->toggleVisible();
/* if dialog is closed, revert editing if not saved */
if( MP->isInEditMode() )
{
MP->setEditMode( false );
updateButtons( 0 );
}
if( mainInput == false ) {
deleteLater();
}
......
......@@ -67,7 +67,6 @@ private:
input_item_t *p_item;
static MediaInfoDialog *instance;
int i_runs;
bool mainInput;
bool stats;
bool b_cleaned;
......
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