Changeset dadd01e in OpenModelica


Ignore:
Timestamp:
2024-04-11T17:26:49+02:00 (3 weeks ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
78eb8ddb, cc1d59a5, e9fd3a6c
Parents:
113dcdf
git-author:
Per Östlund <per.ostlund@…> (04/11/24 17:26:49)
git-committer:
GitHub <noreply@…> (04/11/24 17:26:49)
Message:

Don't set path when duplicating from system library (#12227)

  • Leave the path textbox empty when duplicating a class from a system library, since classes can't be added to system libraries anyway.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMEdit/OMEditLIB/Modeling/ModelicaClassDialog.cpp

    r6016ef70 rdadd01e  
    752752  mpNameTextBox->selectAll();
    753753  mpPathLabel = new Label(Helper::path);
    754   mpPathTextBox = new QLineEdit(mpLibraryTreeItem->isTopLevel() ? "" : mpLibraryTreeItem->parent()->getNameStructure());
     754  mpPathTextBox = new QLineEdit(mpLibraryTreeItem->isTopLevel() || mpLibraryTreeItem->isSystemLibrary() ? "" : mpLibraryTreeItem->parent()->getNameStructure());
    755755  mpPathBrowseButton = new QPushButton(Helper::browse);
    756756  mpPathBrowseButton->setAutoDefault(false);
Note: See TracChangeset for help on using the changeset viewer.