src/dialogs.cc

changeset 816
9adb822de7b9
parent 789
4b7306f52bb5
child 840
d077dd19bf9a
equal deleted inserted replaced
815:efe34366e56a 816:9adb822de7b9
220 // ============================================================================= 220 // =============================================================================
221 void LDrawPathDialog::slot_findPath() 221 void LDrawPathDialog::slot_findPath()
222 { 222 {
223 QString newpath = QFileDialog::getExistingDirectory (this, "Find LDraw Path"); 223 QString newpath = QFileDialog::getExistingDirectory (this, "Find LDraw Path");
224 224
225 if (newpath.length() > 0 && newpath != filename()) 225 if (not newpath.isEmpty())
226 { 226 {
227 setPath (newpath); 227 setPath (newpath);
228 slot_tryConfigure(); 228 slot_tryConfigure();
229 } 229 }
230 } 230 }

mercurial