From 5b7409c7ea3a32f4940e25e2088cc88f2a41ce94 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Fri, 4 Aug 2023 14:38:48 -0400 Subject: [PATCH] 2023-08-04 Fred Gleason * Fixed a regression in rdlibrary(1) that caused cart deletion to fail with the message "Voicetrack Found". Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ lib/rdlibrarymodel.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index af09fb1e..d5068c0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24327,3 +24327,6 @@ * Incremented the package version to 4.0.2int0. 2023-08-04 Fred Gleason * Added a destructor to the 'RDMulticaster' class. +2023-08-04 Fred Gleason + * Fixed a regression in rdlibrary(1) that caused cart deletion to + fail with the message "Voicetrack Found". diff --git a/lib/rdlibrarymodel.cpp b/lib/rdlibrarymodel.cpp index 05168223..5e86d1df 100644 --- a/lib/rdlibrarymodel.cpp +++ b/lib/rdlibrarymodel.cpp @@ -424,9 +424,9 @@ RDCart::Type RDLibraryModel::cartType(const QModelIndex &index) const QString RDLibraryModel::cartOwnedBy(const QModelIndex &index) { if(isCart(index)) { - return d_texts.at(index.row()).at(20).toString(); + return d_texts.at(index.row()).at(23).toString(); } - return d_texts.at(index.internalId()-1).at(20).toString(); + return d_texts.at(index.internalId()-1).at(23).toString(); }