Skip to content
Commit aa6193b0 authored by Nathan Sprangers's avatar Nathan Sprangers Committed by Tomaz Canabrava
Browse files

Disable "detach-tab" after closing others

Other signals are received too early when closing tabs.
ViewContainer::viewRemoved is received after the tab count has been
updated.

Protect against the "detach-tab" action when only one left.

Fixes the following behavior:
 - Create two tabs
 - Close one tab
 - Detach the remaining tab through menu or shortcut
 - The original window is blank - no terminal display. Adding a tab
   to it crashes
parent d37d3ac1
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