Skip to content

Commit 07f1d7a

Browse files
committed
Fixes crash in v3.12.2 when opening the "Modify Table" dialog
See issue #2779 and #3069
1 parent 1955cb1 commit 07f1d7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/EditTableDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ void EditTableDialog::populateFields()
217217
// For the default value check if it is surrounded by parentheses and if that's the case
218218
// add a '=' character before the entire string to match the input format we're expecting
219219
// 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() == ')')
221221
tbitem->setText(kDefault, "=" + QString::fromStdString(f.defaultValue()));
222222
else
223223
tbitem->setText(kDefault, QString::fromStdString(f.defaultValue()));

0 commit comments

Comments
 (0)