Negative values are replaced by zero when setting Application.Busy.
[GB.GTK] * NEW: Negative values are replaced by zero when setting Application.Busy. [GB.GTK3] * NEW: Negative values are replaced by zero when setting Application.Busy. [GB.QT4] * NEW: Negative values are replaced by zero when setting Application.Busy. [GB.QT5] * NEW: Negative values are replaced by zero when setting Application.Busy.
This commit is contained in:
parent
4ad678ea9b
commit
577779961a
2 changed files with 4 additions and 0 deletions
|
@ -199,6 +199,8 @@ BEGIN_PROPERTY(Application_Busy)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
busy = VPROP(GB_INTEGER);
|
busy = VPROP(GB_INTEGER);
|
||||||
|
if (busy < 0)
|
||||||
|
busy = 0;
|
||||||
|
|
||||||
if (_busy == 0 && busy != 0)
|
if (_busy == 0 && busy != 0)
|
||||||
gApplication::setBusy(true);
|
gApplication::setBusy(true);
|
||||||
|
|
|
@ -225,6 +225,8 @@ BEGIN_PROPERTY(Application_Busy)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
busy = VPROP(GB_INTEGER);
|
busy = VPROP(GB_INTEGER);
|
||||||
|
if (busy < 0)
|
||||||
|
busy = 0;
|
||||||
|
|
||||||
if (screen_busy == 0 && busy > 0)
|
if (screen_busy == 0 && busy > 0)
|
||||||
qApp->setOverrideCursor(Qt::WaitCursor);
|
qApp->setOverrideCursor(Qt::WaitCursor);
|
||||||
|
|
Loading…
Reference in a new issue