src/dialogs.cc

changeset 816
9adb822de7b9
parent 789
4b7306f52bb5
child 840
d077dd19bf9a
--- a/src/dialogs.cc	Sun Jun 29 17:06:21 2014 +0300
+++ b/src/dialogs.cc	Mon Jun 30 05:52:10 2014 +0300
@@ -222,7 +222,7 @@
 {
 	QString newpath = QFileDialog::getExistingDirectory (this, "Find LDraw Path");
 
-	if (newpath.length() > 0 && newpath != filename())
+	if (not newpath.isEmpty())
 	{
 		setPath (newpath);
 		slot_tryConfigure();

mercurial