mirror of
https://github.com/YACReader/yacreader
synced 2026-02-12 18:13:01 -05:00
Conexi?n y desconexi?n de la base de datos en cada operaci?n
esto evita el bloqueo del archivo de BD Si se detecta una biblioteca que no tiene contenido se ofrece al usuario la posibilidad de eliminarla (di?logo)
This commit is contained in:
@ -73,7 +73,7 @@ public:
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
void setupModelData(QString path);
|
||||
QSqlDatabase & getDatabase();
|
||||
QString getDatabase();
|
||||
|
||||
//M<>todos de conveniencia
|
||||
QString getFolderPath(const QModelIndex &folder);
|
||||
@ -92,7 +92,7 @@ private:
|
||||
TreeItem *rootBeforeFilter;
|
||||
QMap<unsigned long long int, TreeItem *> filteredItems; //relaci<63>n entre folders
|
||||
|
||||
QSqlDatabase _database;
|
||||
QString _databasePath;
|
||||
|
||||
bool includeComics;
|
||||
QString filter;
|
||||
|
||||
Reference in New Issue
Block a user