mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 13:53:51 +00:00
Fix for operations widget - hides when no operations are running.
This commit is contained in:
parent
6f89d453a5
commit
89dace3cc3
1 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,7 @@ CSVDoc::Operations::Operations()
|
||||||
|
|
||||||
widgetContainer->setLayout (mLayout);
|
widgetContainer->setLayout (mLayout);
|
||||||
setWidget (widgetContainer);
|
setWidget (widgetContainer);
|
||||||
|
setVisible (false);
|
||||||
setFixedHeight (widgetContainer->height());
|
setFixedHeight (widgetContainer->height());
|
||||||
setTitleBarWidget (new QWidget (this));
|
setTitleBarWidget (new QWidget (this));
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,8 @@ void CSVDoc::Operations::setProgress (int current, int max, int type, int thread
|
||||||
|
|
||||||
if ( oldCount > 0)
|
if ( oldCount > 0)
|
||||||
setFixedHeight (height()/oldCount * newCount);
|
setFixedHeight (height()/oldCount * newCount);
|
||||||
|
|
||||||
|
setVisible (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVDoc::Operations::quitOperation (int type)
|
void CSVDoc::Operations::quitOperation (int type)
|
||||||
|
@ -59,6 +61,8 @@ void CSVDoc::Operations::quitOperation (int type)
|
||||||
|
|
||||||
if (oldCount > 1)
|
if (oldCount > 1)
|
||||||
setFixedHeight (height() / oldCount * newCount);
|
setFixedHeight (height() / oldCount * newCount);
|
||||||
|
else
|
||||||
|
setVisible (false);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue