mirror of
https://github.com/YACReader/yacreader
synced 2025-07-26 00:44:59 -04:00
eliminado el focusrect en macos para los elementos de navegaci?n y b?squeda de folders
corregido grave BUG en library_creator (udpate) corregido tablemodel (solo se eliminar filas si se puede borrar el fichero)
This commit is contained in:
@ -435,9 +435,9 @@ QModelIndex TableModel::getIndexFromId(quint64 id)
|
||||
return index(i,0);
|
||||
}
|
||||
|
||||
void TableModel::startTransaction(int first, int last)
|
||||
void TableModel::startTransaction()
|
||||
{
|
||||
beginRemoveRows(QModelIndex(),first,last);
|
||||
|
||||
dbTransaction = DataBaseManagement::loadDatabase(_databasePath);
|
||||
dbTransaction.transaction();
|
||||
}
|
||||
@ -448,7 +448,7 @@ void TableModel::finishTransaction()
|
||||
dbTransaction.close();
|
||||
QSqlDatabase::removeDatabase(_databasePath);
|
||||
|
||||
endRemoveRows();
|
||||
|
||||
}
|
||||
|
||||
void TableModel::removeInTransaction(int row)
|
||||
@ -456,10 +456,12 @@ void TableModel::removeInTransaction(int row)
|
||||
ComicDB c = DBHelper::loadComic(_data.at(row)->data(ID).toULongLong(),dbTransaction);
|
||||
|
||||
DBHelper::removeFromDB(&c,dbTransaction);
|
||||
|
||||
beginRemoveRows(QModelIndex(),row,row);
|
||||
removeRow(row);
|
||||
delete _data.at(row);
|
||||
_data.removeAt(row);
|
||||
|
||||
endRemoveRows();
|
||||
}
|
||||
|
||||
void TableModel::remove(ComicDB * comic, int row)
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
|
||||
public slots:
|
||||
void remove(int row);
|
||||
void startTransaction(int first, int last);
|
||||
void startTransaction();
|
||||
void finishTransaction();
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user