From 52def890dab73f0738991d7d4095cde84b64d606 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 8 May 2008 10:28:52 +0000 Subject: [PATCH] When opening a new tab, select it automatically, as described in ticket #2176. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25365 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/TermWindow.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/apps/terminal/TermWindow.cpp b/src/apps/terminal/TermWindow.cpp index 7b81c60f09..c4df21b8ff 100644 --- a/src/apps/terminal/TermWindow.cpp +++ b/src/apps/terminal/TermWindow.cpp @@ -536,11 +536,10 @@ TermWindow::_DoPrint() if (!job.CanContinue()){ // It is likely that the only way that the job was cancelled is - // because the user hit 'Cancel' in the page setup window, in which - // case, the user does *not* need to be told that it was cancelled. - // He/she will simply expect that it was done. - // (new BAlert("Cancel", "Print job cancelled", "OK"))->Go(); - return; + // because the user hit 'Cancel' in the page setup window, in which + // case, the user does *not* need to be told that it was cancelled. + // He/she will simply expect that it was done. + return; } } } @@ -610,6 +609,8 @@ TermWindow::_AddTab(Arguments *args) ResizeTo(viewWidth + B_V_SCROLL_BAR_WIDTH, viewHeight + fMenubar->Bounds().Height()); } + // TODO: No fTabView->Select(tab); ? + fTabView->Select(fTabView->CountTabs() - 1); } catch (...) { // most probably out of memory. That's bad. // TODO: Should cleanup, I guess