mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Fix possible crash in intro widget.
This commit is contained in:
@@ -725,6 +725,9 @@ void Widget::paintEvent(QPaintEvent *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Widget::resizeEvent(QResizeEvent *e) {
|
void Widget::resizeEvent(QResizeEvent *e) {
|
||||||
|
if (_stepHistory.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (const auto step : _stepHistory) {
|
for (const auto step : _stepHistory) {
|
||||||
step->setGeometry(rect());
|
step->setGeometry(rect());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user