From d668e0158df40e1bb1ea00ab72fac9d0e95e8bd9 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 13 Feb 2019 16:13:37 +0100 Subject: Fix runtime criticals (and compiler warnings) fixes #520 --- main/src/ui/conversation_titlebar/view.vala | 1 - main/src/ui/conversation_titlebar/view_csd.vala | 1 - main/src/ui/manage_accounts/add_account_dialog.vala | 2 +- main/src/ui/manage_accounts/dialog.vala | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) (limited to 'main') diff --git a/main/src/ui/conversation_titlebar/view.vala b/main/src/ui/conversation_titlebar/view.vala index cb31527e..9706b516 100644 --- a/main/src/ui/conversation_titlebar/view.vala +++ b/main/src/ui/conversation_titlebar/view.vala @@ -22,7 +22,6 @@ public class ConversationTitlebar : Gtk.Box { } private StreamInteractor stream_interactor; - private Conversation? conversation; private Box content_box = new Box(Orientation.HORIZONTAL, 0) { margin=5, margin_start=15, margin_end=5, hexpand=true, visible=true }; private Label title_label = new Label("") { visible=true }; diff --git a/main/src/ui/conversation_titlebar/view_csd.vala b/main/src/ui/conversation_titlebar/view_csd.vala index 83a1a474..26231a4c 100644 --- a/main/src/ui/conversation_titlebar/view_csd.vala +++ b/main/src/ui/conversation_titlebar/view_csd.vala @@ -9,7 +9,6 @@ public class ConversationTitlebarCsd : Gtk.HeaderBar { private StreamInteractor stream_interactor; private Window window; - private Conversation? conversation; public ConversationTitlebarCsd(StreamInteractor stream_interactor, Window window) { this.stream_interactor = stream_interactor; diff --git a/main/src/ui/manage_accounts/add_account_dialog.vala b/main/src/ui/manage_accounts/add_account_dialog.vala index 97a8e924..558738aa 100644 --- a/main/src/ui/manage_accounts/add_account_dialog.vala +++ b/main/src/ui/manage_accounts/add_account_dialog.vala @@ -215,7 +215,7 @@ public class AddAccountDialog : Gtk.Dialog { private async void on_sign_in_jid_continue_button_clicked() { Jid jid = new Jid(jid_entry.get_text()); sign_in_jid_continue_stack.visible_child_name = "spinner"; - Register.ServerAvailabilityReturn server_status = yield stream_interactor.get_module(Register.IDENTITY).check_server_availability(jid); + Register.ServerAvailabilityReturn server_status = yield Register.check_server_availability(jid); sign_in_jid_continue_stack.visible_child_name = "label"; if (server_status.available) { show_sign_in_password(); diff --git a/main/src/ui/manage_accounts/dialog.vala b/main/src/ui/manage_accounts/dialog.vala index a86a8346..07656f3a 100644 --- a/main/src/ui/manage_accounts/dialog.vala +++ b/main/src/ui/manage_accounts/dialog.vala @@ -195,7 +195,7 @@ public class Dialog : Gtk.Dialog { active_switch.set_active(account.enabled); jid_label.label = account.bare_jid.to_string(); - alias_hybrid.text = account.alias; + alias_hybrid.text = account.alias ?? ""; password_hybrid.entry.input_purpose = InputPurpose.PASSWORD; password_hybrid.text = account.password; -- cgit v1.2.3-70-g09d2