--- a/src/addObjectDialog.cpp Sat Jan 28 14:01:19 2017 +0200 +++ b/src/addObjectDialog.cpp Sat Jan 28 14:13:01 2017 +0200 @@ -269,7 +269,7 @@ { QString name = currentSubfileName(); - if (name.length() > 0) + if (not name.isEmpty()) le_subfileName->setText (name); } @@ -366,7 +366,7 @@ { QString name = dlg.le_subfileName->text(); - if (name.length() == 0) + if (name.isEmpty()) return; // no subfile filename LDDocument* document = g_win->documents()->getDocumentByName (name);