Fix quit confirmation text for downloads

This commit is contained in:
Florian Bruhin 2016-10-05 10:13:01 +02:00
parent dd537c9119
commit c36ae5ab8f

View File

@ -503,8 +503,8 @@ class MainWindow(QWidget):
# Ask if multiple downloads running
if 'downloads' in confirm_quit and download_count > 0:
quit_texts.append("{} {} running.".format(
tab_count,
"download is" if tab_count == 1 else "downloads are"))
download_count,
"download is" if download_count == 1 else "downloads are"))
# Process all quit messages that user must confirm
if quit_texts or 'always' in confirm_quit:
text = '\n'.join(['Really quit?'] + quit_texts)