Create a new tab when open is selected and there are no tabs. Fixes bug 50.
authorladanyi
Mon, 26 Jun 2006 21:28:49 +0000
changeset 140d300e3153ab1
parent 139 56dd34430f07
child 141 548688a830c3
Create a new tab when open is selected and there are no tabs. Fixes bug 50.
main_win.cc
     1.1 --- a/main_win.cc	Wed Jun 21 11:10:00 2006 +0000
     1.2 +++ b/main_win.cc	Mon Jun 26 21:28:49 2006 +0000
     1.3 @@ -339,10 +339,11 @@
     1.4   
     1.5  void MainWin::openFile()
     1.6  {
     1.7 -  if(active_tab!=-1)
     1.8 +  if(active_tab==-1)
     1.9      {
    1.10 -      tabs[active_tab]->openFile();
    1.11 +      newTab();
    1.12      }
    1.13 +  tabs[active_tab]->openFile();
    1.14  }
    1.15   
    1.16  void MainWin::saveFile()