Skip to content

Commit

Permalink
Make the Del key work on nested classes (#7268)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 4, 2021
1 parent d8ce9c4 commit 4b507e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditLIB/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -3963,7 +3963,7 @@ void LibraryTreeView::keyPressEvent(QKeyEvent *event)
} else if (controlModifier && event->key() == Qt::Key_C) {
QApplication::clipboard()->setText(pLibraryTreeItem->getNameStructure());
} else if (event->key() == Qt::Key_Delete) {
if (isTopLevel && isModelicaLibraryType) {
if (isModelicaLibraryType) {
unloadClass();
} else if (isTopLevel && isOMSimulatorLibraryType) {
unloadOMSModel();
Expand Down

0 comments on commit 4b507e4

Please sign in to comment.