| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -217,7 +217,7 @@ void EditTableDialog::populateFields() | |||
| 217 | 217 | // For the default value check if it is surrounded by parentheses and if that's the case | |
| 218 | 218 | // add a '=' character before the entire string to match the input format we're expecting | |
| 219 | 219 | // from the user when using functions in the default value field. | |
| 220 | - if(f.defaultValue().front() == '(' && f.defaultValue().back() == ')') | ||
| 220 | + if(!f.defaultValue().empty() && f.defaultValue().front() == '(' && f.defaultValue().back() == ')') | ||
| 221 | 221 | tbitem->setText(kDefault, "=" + QString::fromStdString(f.defaultValue())); | |
| 222 | 222 | else | |
| 223 | 223 | tbitem->setText(kDefault, QString::fromStdString(f.defaultValue())); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments