| 374 | } |
| 375 | |
| 376 | void ProgressDialog::slotToggleVisibility() |
| 377 | { |
| 378 | /* Since we are only hiding with a timeout, there is a short period of |
| 379 | * time where the last item is still visible, but clicking on it in |
| 380 | * the statusbarwidget should not display the dialog, because there |
| 381 | * are no items to be shown anymore. Guard against that. |
| 382 | */ |
| 383 | mWasLastShown = isHidden(); |
| 384 | if ( !isHidden() || !mTransactionsToListviewItems.isEmpty() ) { |
| 385 | setVisible( isHidden() ); |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | } |
| 390 |