mirror of
https://github.com/YACReader/yacreader
synced 2025-08-06 14:25:04 -04:00
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:
@ -4,6 +4,7 @@
|
||||
#include <QVBoxLayout>
|
||||
#include <QFileDialog>
|
||||
#include <QDir>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "data_base_management.h"
|
||||
|
||||
@ -73,8 +74,15 @@ void ExportComicsInfoDialog::findPath()
|
||||
|
||||
void ExportComicsInfoDialog::exportComicsInfo()
|
||||
{
|
||||
DataBaseManagement::exportComicsInfo(source,path->text());
|
||||
close();
|
||||
QFileInfo f(path->text());
|
||||
QFileInfo fPath(f.absoluteDir().path());
|
||||
if(fPath.exists() && fPath.isDir() && fPath.isWritable())
|
||||
{
|
||||
DataBaseManagement::exportComicsInfo(source,path->text());
|
||||
close();
|
||||
}
|
||||
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 ExportComicsInfoDialog::close()
|
||||
|
Reference in New Issue
Block a user