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, ...@@ -40,7 +40,6 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
QVLCFrame( _p_intf ), mainInput(_mainInput), QVLCFrame( _p_intf ), mainInput(_mainInput),
stats( _stats ) stats( _stats )
{ {
i_runs = 0;
p_item = _p_item; p_item = _p_item;
b_cleaned = true; b_cleaned = true;
...@@ -165,6 +164,12 @@ void MediaInfoDialog::close() ...@@ -165,6 +164,12 @@ void MediaInfoDialog::close()
{ {
this->toggleVisible(); this->toggleVisible();
/* if dialog is closed, revert editing if not saved */
if( MP->isInEditMode() )
{
MP->setEditMode( false );
updateButtons( 0 );
}
if( mainInput == false ) { if( mainInput == false ) {
deleteLater(); deleteLater();
} }
......
...@@ -67,7 +67,6 @@ private: ...@@ -67,7 +67,6 @@ private:
input_item_t *p_item; input_item_t *p_item;
static MediaInfoDialog *instance; static MediaInfoDialog *instance;
int i_runs;
bool mainInput; bool mainInput;
bool stats; bool stats;
bool b_cleaned; 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