-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
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
Implementing "delete" function for a separate object #471
Conversation
UserInterface/MainWindow.cpp
Outdated
tr("The Button works!"), QMessageBox::Ok); | ||
//OpenInfraPlatform::Core::DataManagement::Data::removeModel(model); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm quite sure removeModel() will be necessary.
In case it doesn't work you can also try removeallModels(), see if it works and then try to progress from there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto& data = OpenInfraPlatform::Core::DataManagement::DocumentManager::getInstance().getData();
data.removeAllModels();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fileNames -> Datei löschen?
I went through this Pull Request and concluded that it is impossible to implement the "delete" feature into the solution for now. |
Thank you for having another look at it. |
Fixes #436