Skip to content

Commit

Permalink
- Don't copy the SourceInfo so that user can save the copied class to…
Browse files Browse the repository at this point in the history
… new location.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23884 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Dec 20, 2014
1 parent bee6fff commit 5b491ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Modeling/ModelicaClassDialog.cpp
Expand Up @@ -839,7 +839,7 @@ void CopyClassDialog::copyClass()
}
}
// check if new class already exists
QString newClassPath = mpNameTextBox->text() + (mpPathTextBox->text().isEmpty() ? "" : "." + mpPathTextBox->text());
QString newClassPath = (mpPathTextBox->text().isEmpty() ? "" : mpPathTextBox->text() + ".") + mpNameTextBox->text();
if (mpMainWindow->getOMCProxy()->existClass(newClassPath)) {
QMessageBox::critical(this, QString(Helper::applicationName).append(" - ").append(Helper::error),
GUIMessages::getMessage(GUIMessages::MODEL_ALREADY_EXISTS).arg("class").arg(mpNameTextBox->text())
Expand Down

0 comments on commit 5b491ed

Please sign in to comment.