From c36ae5ab8f99c9141aa2f0877b922b074bfb09ab Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 5 Oct 2016 10:13:01 +0200 Subject: [PATCH] Fix quit confirmation text for downloads --- qutebrowser/mainwindow/mainwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py index 593ed04bd..ebc4f28ad 100644 --- a/qutebrowser/mainwindow/mainwindow.py +++ b/qutebrowser/mainwindow/mainwindow.py @@ -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)