Changeset 25365

Show
Ignore:
Timestamp:
05/08/08 05:28:52 (1 week ago)
Author:
jackburton
Message:
When opening a new tab, select it automatically, as described in ticket 
#2176.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • haiku/trunk/src/apps/terminal/TermWindow.cpp

    r24851 r25365  
    537537                        if (!job.CanContinue()){ 
    538538                                // It is likely that the only way that the job was cancelled is 
    539                                 // because the user hit 'Cancel' in the page setup window, in which 
    540                                 // case, the user does *not* need to be told that it was cancelled. 
    541                                 // He/she will simply expect that it was done. 
    542                                 // (new BAlert("Cancel", "Print job cancelled", "OK"))->Go(); 
    543                                 return; 
     539                            // because the user hit 'Cancel' in the page setup window, in which 
     540                            // case, the user does *not* need to be told that it was cancelled. 
     541                            // He/she will simply expect that it was done. 
     542                                    return; 
    544543                        } 
    545544                } 
     
    611610                                        viewHeight + fMenubar->Bounds().Height()); 
    612611                } 
     612                // TODO: No fTabView->Select(tab); ? 
     613                fTabView->Select(fTabView->CountTabs() - 1); 
    613614        } catch (...) { 
    614615                // most probably out of memory. That's bad.