From 237081e5735b463b7528f4f3f52978eaf1bfeeca Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 12 Oct 2021 16:27:56 +0200 Subject: Fix compiler warnings ('Switch does not handle .. of enum ..') --- main/src/ui/conversation_content_view/file_widget.vala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main/src/ui/conversation_content_view') diff --git a/main/src/ui/conversation_content_view/file_widget.vala b/main/src/ui/conversation_content_view/file_widget.vala index 7d77ba11..5766ec25 100644 --- a/main/src/ui/conversation_content_view/file_widget.vala +++ b/main/src/ui/conversation_content_view/file_widget.vala @@ -175,6 +175,9 @@ public class FileDefaultWidgetController : Object { assert(stream_interactor != null && file_transfer != null); stream_interactor.get_module(FileManager.IDENTITY).download_file.begin(file_transfer); break; + default: + // Clicking doesn't do anything in FAILED and IN_PROGRESS states + break; } return false; } -- cgit v1.2.3-70-g09d2