Verificaci?n de ruta de destino a?adida a los di?logos de creaci?n y expotaci?n

(info y covers)

Al cerrar properties dialog ahora se hace un reset del focus
This commit is contained in:
Luis Ángel San Martín
2012-07-30 19:31:31 +02:00
parent 221cba826e
commit 3009a3970e
4 changed files with 26 additions and 7 deletions

View File

@ -2,6 +2,7 @@
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QFileDialog>
#include <QMessageBox>
#include <QDir>
ExportLibraryDialog::ExportLibraryDialog(QWidget * parent)
@ -63,10 +64,17 @@ ExportLibraryDialog::ExportLibraryDialog(QWidget * parent)
void ExportLibraryDialog::exportLibrary()
{
progressBar->show();
accept->setEnabled(false);
emit exportPath(QDir::cleanPath(path->text()));
t.start();
QFileInfo f(path->text());
if(f.exists() && f.isDir() && f.isWritable())
{
progressBar->show();
accept->setEnabled(false);
emit exportPath(QDir::cleanPath(path->text()));
t.start();
}
else
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"));
}
void ExportLibraryDialog::findPath()