Commit fbf3e739 authored by Mohammed Sadiq's avatar Mohammed Sadiq Committed by Mohammed Sadiq
Browse files

window: Don't open next chat on deleting one when folded

We have to return to the main window in that case.
Selecting the next chat should only happen when in non-folded
parent 78cd14d6
Pipeline #70881 passed with stages
in 9 minutes and 20 seconds
......@@ -495,7 +495,8 @@ window_delete_buddy_clicked_cb (ChattyWindow *self)
window_set_item (self, NULL);
chatty_window_chat_list_select_first (self);
if (!hdy_leaflet_get_folded (HDY_LEAFLET (self->content_box)))
chatty_window_chat_list_select_first (self);
gtk_widget_destroy (dialog);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment