| 774 | } |
| 775 | |
| 776 | void LightscreenWindow::uploadCancel() |
| 777 | { |
| 778 | if (Uploader::instance()->uploading() <= 0) { |
| 779 | return; |
| 780 | } |
| 781 | |
| 782 | int confirm = QMessageBox::question(this, tr("Upload cancel"), tr("Do you want to cancel all screenshot uploads?"), tr("Cancel"), tr("Don't Cancel")); |
| 783 | |
| 784 | if (confirm == 0) { |
| 785 | Uploader::instance()->cancel(); |
| 786 | updateStatus(); |
| 787 | } |
| 788 | } |
| 789 | |
| 790 | void LightscreenWindow::uploadLast() |
| 791 | { |