[Lemon-commits] [lemon_svn] ladanyi: r2808 - glemon/trunk

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 21:50:23 CET 2006


Author: ladanyi
Date: Mon Jun 26 23:28:49 2006
New Revision: 2808

Modified:
   glemon/trunk/main_win.cc

Log:
Create a new tab when open is selected and there are no tabs. Fixes bug 50.

Modified: glemon/trunk/main_win.cc
==============================================================================
--- glemon/trunk/main_win.cc	(original)
+++ glemon/trunk/main_win.cc	Mon Jun 26 23:28:49 2006
@@ -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()



More information about the Lemon-commits mailing list