2021-01-15 Fred Gleason <fredg@paravelsystems.com>

* Modified the 'RDLibraryModel::addCart()' to return 'QModelIndex'
	rather than 'int'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-01-15 07:35:15 -05:00
parent aa41ce2f84
commit 42e1358386
4 changed files with 8 additions and 5 deletions

View File

@@ -377,8 +377,8 @@ void MainWidget::addData()
EditCart *cart=
new EditCart(cartnums,&lib_import_path,true,profile_ripping,this);
if(cart->exec()) {
int row=lib_cart_model->addCart(cart_num);
lib_cart_view->scrollTo(lib_cart_model->index(row,0));
QModelIndex row=lib_cart_model->addCart(cart_num);
SelectRow(row);
SendNotification(RDNotification::AddAction,cart_num);
}
else {