Skip to content
Snippets Groups Projects
Commit 1f2ff277 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Prevent adding of sequence messages without a custom or class method.

CCBUG:331188
parent f4fa36b5
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,7 @@ SelectOpDlg::SelectOpDlg(UMLView *parent, UMLClassifier * c, bool enableAutoIncr
connect(m_pOpLE, SIGNAL(textChanged(QString)), this, SLOT(slotTextChanged(QString)));
mainLayout->addWidget(m_pOpLE, 2, 1, 1, 2);
setupOperationsList();
enableButtonOk(false);
}
/**
......@@ -161,6 +162,7 @@ void SelectOpDlg::slotNewOperation()
return;
setupOperationsList();
setClassOp(op->toString(Uml::SignatureType::SigNoVis));
enableButtonOk(true);
}
/**
......@@ -171,6 +173,7 @@ void SelectOpDlg::slotIndexChanged(int index)
if (index != -1) {
m_pOpLE->setText("");
m_id = OP;
enableButtonOk(true);
}
}
......@@ -182,6 +185,7 @@ void SelectOpDlg::slotTextChanged(const QString &text)
if (!text.isEmpty()) {
m_pOpCB->setCurrentIndex(-1);
m_id = CUSTOM;
enableButtonOk(true);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment