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 1955cb1 commit 07f1d7aCopy full SHA for 07f1d7a
1 file changed
src/EditTableDialog.cpp
@@ -217,7 +217,7 @@ void EditTableDialog::populateFields()
217
// For the default value check if it is surrounded by parentheses and if that's the case
218
// add a '=' character before the entire string to match the input format we're expecting
219
// from the user when using functions in the default value field.
220
- if(f.defaultValue().front() == '(' && f.defaultValue().back() == ')')
+ if(!f.defaultValue().empty() && f.defaultValue().front() == '(' && f.defaultValue().back() == ')')
221
tbitem->setText(kDefault, "=" + QString::fromStdString(f.defaultValue()));
222
else
223
tbitem->setText(kDefault, QString::fromStdString(f.defaultValue()));
0 commit comments