Skip to content

Commit

Permalink
fix(tray): Adding a keyboard layout for the first time will crash
Browse files Browse the repository at this point in the history
  • Loading branch information
justforlxz committed May 14, 2019
1 parent 2e4fcd8 commit 0a71b34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/tray/indicatortray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ void IndicatorTray::textPropertyChanged(const QDBusMessage &message)
return;
}

if (!d->indicatorTrayWidget) {
d->init();
}

d->indicatorTrayWidget->setText(value.toByteArray());
});
}
Expand All @@ -247,6 +251,10 @@ void IndicatorTray::iconPropertyChanged(const QDBusMessage &message)
return;
}

if (!d->indicatorTrayWidget) {
d->init();
}

d->indicatorTrayWidget->setPixmapData(value.toByteArray());
});
}

0 comments on commit 0a71b34

Please sign in to comment.