changeset 15375:7366bedaeac1

reomve empty editor-tab after trying to load a nonexistant file * file-editor-tab.cc: open_file returns the state of load_file
author Torsten <ttl@justmail.de>
date Wed, 12 Sep 2012 20:50:18 +0200
parents d6ea3c0f80d8
children 860b4edb0bea
files libgui/src/m-editor/file-editor-tab.cc
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc	Wed Sep 12 11:04:54 2012 -0400
+++ b/libgui/src/m-editor/file-editor-tab.cc	Wed Sep 12 20:50:18 2012 +0200
@@ -618,8 +618,7 @@
       if (openFileName.isEmpty ())
         return false;
 
-      load_file(openFileName);
-      return true;
+      return load_file(openFileName);
     }
   else
     {