Fix a bunch of warnings

This commit is contained in:
Luis Ángel San Martín
2023-04-30 14:00:09 +02:00
parent 3355f2137c
commit a47b706e29
13 changed files with 24 additions and 26 deletions

View File

@ -87,10 +87,10 @@ void CreateLibraryDialog::create()
QFileInfo f(path->text());
if (f.exists() && f.isDir() && f.isWritable()) {
if (!libraries.contains(nameEdit->text())) {
emit(createLibrary(QDir::cleanPath(path->text()), QDir::cleanPath(path->text()) + "/.yacreaderlibrary", nameEdit->text()));
emit createLibrary(QDir::cleanPath(path->text()), QDir::cleanPath(path->text()) + "/.yacreaderlibrary", nameEdit->text());
close();
} else
emit(libraryExists(nameEdit->text()));
emit libraryExists(nameEdit->text());
} else
QMessageBox::critical(NULL, tr("Path not found"), tr("The selected path does not exist or is not a valid path. Be sure that you have write access to this folder"));
}