Commit 3b218117 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Notifications] Check popup being null

I've seen popup being null when spamming notification removal.

Perhaps when the model already yanked the item under us before the Instantiator
had a chance to update its count... Not sure about the implications, but it
silences a warning I observed.
parent f0609cb7
......@@ -338,6 +338,10 @@ QtObject {
for (var i = 0; i < popupInstantiator.count; ++i) {
let popup = popupInstantiator.objectAt(i);
if (!popup) {
continue;
}
// Popup width is fixed, so don't rely on the actual window size
var popupEffectiveWidth = popupWidth + popup.margins.left + popup.margins.right;
......
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