changeset 15373: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
+++ b/libgui/src/m-editor/file-editor-tab.cc
@@ -618,8 +618,7 @@
       if (openFileName.isEmpty ())
         return false;
 
-      load_file(openFileName);
-      return true;
+      return load_file(openFileName);
     }
   else
     {