Skip to content

Commit

Permalink
https://github.com/StephaneCouturier/Katalog/issues/544
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneCouturier committed Jul 24, 2024
1 parent 71e755e commit 3b00315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mainwindow_tab_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,7 @@ void MainWindow::loadDevicesCatalogToModel(){
FROM device d
JOIN catalog c ON d.device_external_id = c.catalog_id
WHERE device_type = 'Catalog'
AND device_group_id = 0
AND device_group_id = :device_group_id
)");

if ( selectedDevice->type == "Storage" ){
Expand Down Expand Up @@ -2194,6 +2194,7 @@ void MainWindow::loadDevicesCatalogToModel(){
loadCatalogQuery.prepare(loadCatalogQuerySQL);
loadCatalogQuery.bindValue(":device_id", selectedDevice->ID);
loadCatalogQuery.bindValue(":device_parent_id", selectedDevice->ID);
loadCatalogQuery.bindValue(":device_group_id", selectedDevice->groupID);
loadCatalogQuery.exec();

//Prepare the tree model: headers
Expand Down

0 comments on commit 3b00315

Please sign in to comment.