mirror of
https://github.com/elementary/gala.git
synced 2024-12-23 17:23:01 +03:00
Tooltip: null check text_actor before removing (#1293)
This commit is contained in:
parent
67de38d4be
commit
ebfa8ea45d
@ -95,7 +95,9 @@ public class Gala.Tooltip : Clutter.Actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// First set the text
|
// First set the text
|
||||||
remove_child (text_actor);
|
if (text_actor != null) {
|
||||||
|
remove_child (text_actor);
|
||||||
|
}
|
||||||
|
|
||||||
text_actor = new Clutter.Text () {
|
text_actor = new Clutter.Text () {
|
||||||
color = text_color,
|
color = text_color,
|
||||||
|
Loading…
Reference in New Issue
Block a user