mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
arreglado el bug que causaba que una libreria sin covers en root habilitase los
botones relativos al manejor de comics
This commit is contained in:
parent
3cd879124e
commit
3ba8ba8862
@ -570,17 +570,6 @@ void LibraryWindow::loadLibrary(const QString & name)
|
|||||||
dm->setupModelData(path);
|
dm->setupModelData(path);
|
||||||
foldersView->setModel(dm);
|
foldersView->setModel(dm);
|
||||||
|
|
||||||
loadCovers(QModelIndex());
|
|
||||||
|
|
||||||
//includeComicsCheckBox->setCheckState(Qt::Unchecked);
|
|
||||||
foldersFilter->clear();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
comicView->setModel(NULL);
|
|
||||||
foldersView->setModel(NULL);
|
|
||||||
comicFlow->clear();
|
|
||||||
}
|
|
||||||
d.setCurrent(libraries.value(name));
|
d.setCurrent(libraries.value(name));
|
||||||
d.setFilter(QDir::AllDirs | QDir::Files | QDir::Hidden | QDir::NoSymLinks | QDir::NoDotAndDotDot);
|
d.setFilter(QDir::AllDirs | QDir::Files | QDir::Hidden | QDir::NoSymLinks | QDir::NoDotAndDotDot);
|
||||||
if(d.count()<=1) //librería de sólo lectura
|
if(d.count()<=1) //librería de sólo lectura
|
||||||
@ -595,6 +584,19 @@ void LibraryWindow::loadLibrary(const QString & name)
|
|||||||
importedCovers = false;
|
importedCovers = false;
|
||||||
}
|
}
|
||||||
enableLibraryActions();
|
enableLibraryActions();
|
||||||
|
|
||||||
|
loadCovers(QModelIndex());
|
||||||
|
|
||||||
|
//includeComicsCheckBox->setCheckState(Qt::Unchecked);
|
||||||
|
foldersFilter->clear();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
comicView->setModel(NULL);
|
||||||
|
foldersView->setModel(NULL);
|
||||||
|
comicFlow->clear();
|
||||||
|
disableAllActions();//TODO comprobar que se deben deshabilitar
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user