From 3e592c980eaac66d8bf701a5a7de66e4434aa6dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 29 Mar 2017 20:59:31 +0200 Subject: [PATCH] Only make pause button active on pause-able transfers --- src/filetransfers_window.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py index 7ad4fc23e..b008c1c33 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -70,8 +70,7 @@ class FileTransfersWindow: 'notify_ft_complete_checkbox') shall_notify = gajim.config.get('notify_on_file_complete') - self.notify_ft_checkbox.set_active(shall_notify - ) + self.notify_ft_checkbox.set_active(shall_notify) self.model = Gtk.ListStore(GdkPixbuf.Pixbuf, str, str, str, str, int, int, str) self.tree.set_model(self.model) @@ -841,7 +840,7 @@ class FileTransfersWindow: if not is_row_selected: # no selection, disable the buttons self.set_all_insensitive() - elif not is_stopped: + elif not is_stopped and file_props.continue_cb: if is_transfer_active(file_props): # file transfer is active self.toggle_pause_continue(True)