We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.om
Depending on the operations scenario, Lab either crashes, or does not reload the selection.
Indeed, in MainWindow.cpp, the function reloadItem() does not take into account the "dependent" items like the selection_item. This should be fixed
reloadItem()
selection_item
The text was updated successfully, but these errors were encountered:
void MainWindow::reloadItem(Item* item) { if (!item) { qDebug() << "No item provided for reload."; return; }
// Step 1: Identify and store dependent items QList<Item*> dependentItems; if (item->hasDependencies()) { dependentItems = item->getDependencies(); } // Step 2: Reload the main item bool reloadSuccessful = item->reloadFromFile(); if (!reloadSuccessful) { qDebug() << "Failed to reload item from file."; return; } // Step 3: Handle dependent items for (Item* dependentItem : dependentItems) { if (dependentItem) { bool dependentReloadSuccessful = dependentItem->reloadFromFile(); if (!dependentReloadSuccessful) { qDebug() << "Failed to reload dependent item:" << dependentItem->name(); // Optionally, recreate or update dependent items as needed } } } // Step 4: Update UI and consistency updateUI(); qDebug() << "Reloaded item and its dependencies successfully.";
}
Sorry, something went wrong.
No branches or pull requests
Issue Details
.om
file formatDepending on the operations scenario, Lab either crashes, or does not reload the selection.
Indeed, in MainWindow.cpp, the function
reloadItem()
does not take into account the "dependent" items like theselection_item
. This should be fixedEnvironment
The text was updated successfully, but these errors were encountered: