If there's only one tab, quit the window when TermView::NotifyQuit() is
called. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21824 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -239,7 +239,10 @@ TermWindow::MessageReceived(BMessage *message)
|
|||||||
// Since the implementation of BTabView uses AddChild/RemoveChild on the
|
// Since the implementation of BTabView uses AddChild/RemoveChild on the
|
||||||
// views, the current active tab is the only one who is attached, thus
|
// views, the current active tab is the only one who is attached, thus
|
||||||
// the only one which could send a message.
|
// the only one which could send a message.
|
||||||
delete fTabView->RemoveTab(fTabView->Selection());
|
if (fTabView->CountTabs() > 1)
|
||||||
|
delete fTabView->RemoveTab(fTabView->Selection());
|
||||||
|
else
|
||||||
|
PostMessage(B_QUIT_REQUESTED);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user