mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-18 16:41:18 +02:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user