mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-24 16:41:40 +02:00
2024-04-25 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdlibrary(1) that could cause segfaults when deleting cut entries from a cart. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
a22c8f59ad
commit
29a2317644
@ -24715,3 +24715,6 @@
|
|||||||
2024-04-24 Fred Gleason <fredg@paravelsystems.com>
|
2024-04-24 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Incremented the package version to 4.2.1
|
* Incremented the package version to 4.2.1
|
||||||
* Incremented the Python API version to 4.2.1.
|
* Incremented the Python API version to 4.2.1.
|
||||||
|
2024-04-25 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a bug in rdlibrary(1) that could cause segfaults when
|
||||||
|
deleting cut entries from a cart.
|
||||||
|
@ -194,11 +194,11 @@ QModelIndex RDCutListModel::addCut(const QString &name)
|
|||||||
void RDCutListModel::removeCut(const QModelIndex &row)
|
void RDCutListModel::removeCut(const QModelIndex &row)
|
||||||
{
|
{
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
d_texts.removeAt(d_row_index.at(row.row()));
|
d_texts.removeAt(row.row());
|
||||||
d_colors.removeAt(d_row_index.at(row.row()));
|
d_colors.removeAt(row.row());
|
||||||
d_row_index.removeAt(row.row());
|
d_row_index.removeAt(row.row());
|
||||||
for(int i=0;i<d_row_index.size();i++) {
|
for(int i=0;i<d_row_index.size();i++) {
|
||||||
if(d_row_index.at(i)>row.row()) {
|
if(d_row_index.at(i)>=row.row()) {
|
||||||
d_row_index[i]--;
|
d_row_index[i]--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -542,3 +542,16 @@ RDCart::Validity RDCutListModel::ValidateCut(RDSqlQuery *q,unsigned offset,
|
|||||||
|
|
||||||
return RDCart::AlwaysValid;
|
return RDCart::AlwaysValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void RDCutListModel::DumpIndex(const QString &str) const
|
||||||
|
{
|
||||||
|
printf("* %s ****************\n",str.toUtf8().constData());
|
||||||
|
printf("SIZE: %d\n",d_row_index.size());
|
||||||
|
for(int i=0;i<d_row_index.size();i++) {
|
||||||
|
printf("%s - %d => %d\n",
|
||||||
|
d_texts.at(i).at(12).toString().toUtf8().constData(),
|
||||||
|
i,d_row_index.at(i));
|
||||||
|
}
|
||||||
|
printf("*****************\n");
|
||||||
|
}
|
||||||
|
@ -68,6 +68,7 @@ class RDCutListModel : public QAbstractTableModel
|
|||||||
RDCart::Validity ValidateCut(RDSqlQuery *q,unsigned offset,
|
RDCart::Validity ValidateCut(RDSqlQuery *q,unsigned offset,
|
||||||
RDCart::Validity prev_validity,
|
RDCart::Validity prev_validity,
|
||||||
const QDateTime &datetime);
|
const QDateTime &datetime);
|
||||||
|
void DumpIndex(const QString &str) const;
|
||||||
QPalette d_palette;
|
QPalette d_palette;
|
||||||
QFont d_font;
|
QFont d_font;
|
||||||
QList<QVariant> d_headers;
|
QList<QVariant> d_headers;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user