| 68 | } |
| 69 | |
| 70 | void ExportLibraryDialog::exportLibrary() |
| 71 | { |
| 72 | QFileInfo f(path->text()); |
| 73 | if (f.exists() && f.isDir() && f.isWritable()) { |
| 74 | progressBar->show(); |
| 75 | accept->setEnabled(false); |
| 76 | emit exportPath(QDir::cleanPath(path->text())); |
| 77 | } else |
| 78 | QMessageBox::critical(NULL, tr("Problem found while writing"), tr("The selected path for the output file does not exist or is not a valid path. Be sure that you have write access to this folder")); |
| 79 | } |
| 80 | |
| 81 | void ExportLibraryDialog::findPath() |
| 82 | { |