We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 302b2ae commit c255823Copy full SHA for c255823
src/app/qgsaddattrdialog.cpp
@@ -113,6 +113,18 @@ void QgsAddAttrDialog::accept()
113
tr( "Invalid field name. This field name is reserved and cannot be used." ) );
114
return;
115
}
116
+ if ( mNameEdit->text().isEmpty() )
117
+ {
118
+ QMessageBox::warning( this, tr( "Warning" ),
119
+ tr( "No name specified. Please specify a name to create a new field." ) );
120
+ return;
121
+ }
122
+ if ( mButtonVirtualField->isChecked() && mExpressionWidget->currentField().isEmpty() )
123
124
125
+ tr( "No expression specified. Please enter an expression that will be used to calculate the field values." ) );
126
127
128
QDialog::accept();
129
130
0 commit comments