qDebug() << __PRETTY_FUNCTION__;
#ifdef Q_WS_MAEMO_5
- setAttribute(Qt::WA_Maemo5ShowProgressIndicator, value);
+ static int counter = 0;
+
+ if (value)
+ counter++;
+ else
+ counter--;
+
+ if (counter < 0)
+ counter = 0;
+
+ if (counter == 0)
+ setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
+ else
+ setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
#else
Q_UNUSED(value);
#endif // Q_WS_MAEMO_5