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 } |