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:
gambas 2020-06-17 18:26:08 +02:00
parent 4ad678ea9b
commit 577779961a
2 changed files with 4 additions and 0 deletions

View file

@ -199,6 +199,8 @@ BEGIN_PROPERTY(Application_Busy)
else
{
busy = VPROP(GB_INTEGER);
if (busy < 0)
busy = 0;
if (_busy == 0 && busy != 0)
gApplication::setBusy(true);

View file

@ -225,6 +225,8 @@ BEGIN_PROPERTY(Application_Busy)
else
{
busy = VPROP(GB_INTEGER);
if (busy < 0)
busy = 0;
if (screen_busy == 0 && busy > 0)
qApp->setOverrideCursor(Qt::WaitCursor);