Uic: fix crash when trying to resource icon information
Fix a typo introduced in be56db2c49be02fd7083c5a02131462748e29bef to avoid a crash when a pixmap is given for selected on but not for selected off. Fixes: QTBUG-79125 Change-Id: I84072b6b4e8a4d21684be21f5bff1deeaddbba6d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
5288c8dae3
commit
aa4b0f5cb7
@ -1680,7 +1680,7 @@ static void writeResourceIcon(QTextStream &output,
|
||||
"Selected", "Off");
|
||||
}
|
||||
if (i->hasElementSelectedOn()) {
|
||||
writeIconAddFile(output, indent, iconName, i->elementSelectedOff()->text(),
|
||||
writeIconAddFile(output, indent, iconName, i->elementSelectedOn()->text(),
|
||||
"Selected", "On");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user