File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ void CustomNodeDialog::checkValid()
160160
161161 bool empty_param_name = false ;
162162 bool invalid_param_name = false ;
163+ bool reselved_param_name = false ;
163164 std::set<QString> param_names;
164165 for (int row=0 ; row < ui->tableWidget ->rowCount (); row++ )
165166 {
@@ -172,6 +173,10 @@ void CustomNodeDialog::checkValid()
172173 {
173174 invalid_param_name = true ;
174175 }
176+ else if ( param_name == " ID" || param_name == " name" )
177+ {
178+ reselved_param_name = true ;
179+ }
175180 else {
176181 param_names.insert (param_name);
177182 }
@@ -182,7 +187,11 @@ void CustomNodeDialog::checkValid()
182187 }
183188 else if ( invalid_param_name )
184189 {
185- ui->labelWarning ->setText (" Invalid key: use only letters, digits and underscores" );
190+ ui->labelWarning ->setText (" Invalid key: use only letters, digits and underscores." );
191+ }
192+ else if ( reselved_param_name )
193+ {
194+ ui->labelWarning ->setText (" Reserved port key: the words \" name\" and \" ID\" should not be used." );
186195 }
187196 else if ( param_names.size () < ui->tableWidget ->rowCount () )
188197 {
You can’t perform that action at this time.
0 commit comments