Commit ba57ea9f authored by Tobias Hunger's avatar Tobias Hunger

Environment: Fix crash in environment widget

Change-Id: I39b30a73932a6fac67cdb6b07225a4f675346fec
Reviewed-by: default avatarhjk <hjk@qt.io>
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
parent b0457051
......@@ -157,7 +157,8 @@ QList<EnvironmentItem> EnvironmentDialog::getEnvironmentItems(bool *ok,
Polisher polisher)
{
EnvironmentDialog dlg(parent);
polisher(&dlg);
if (polisher)
polisher(&dlg);
dlg.setEnvironmentItems(initial);
dlg.setPlaceholderText(placeholderText);
bool result = dlg.exec() == QDialog::Accepted;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment