# HG changeset patch # User ladanyi # Date 1151357329 0 # Node ID d300e3153ab1afeb87212b9d0b22bf58c8de60b0 # Parent 56dd34430f0751e869ac61c60059a7868c824569 Create a new tab when open is selected and there are no tabs. Fixes bug 50. diff -r 56dd34430f07 -r d300e3153ab1 main_win.cc --- a/main_win.cc Wed Jun 21 11:10:00 2006 +0000 +++ b/main_win.cc Mon Jun 26 21:28:49 2006 +0000 @@ -339,10 +339,11 @@ void MainWin::openFile() { - if(active_tab!=-1) + if(active_tab==-1) { - tabs[active_tab]->openFile(); + newTab(); } + tabs[active_tab]->openFile(); } void MainWin::saveFile()