src/addObjectDialog.cpp

changeset 1064
4c7a353cf583
parent 1063
1f15c52c11f6
child 1065
c8ecddbd99e9
--- 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);

mercurial