We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adf5e0d commit ca84cb5Copy full SHA for ca84cb5
1 file changed
src/EventEdition/LocationPanel.vala
@@ -130,17 +130,19 @@ public class Maya.View.EventEdition.LocationPanel : Gtk.Box {
130
}
131
132
133
- destroy.connect (() => {
134
- if (search_cancellable != null)
135
- search_cancellable.cancel ();
136
- if (find_cancellable != null) {
137
- find_cancellable.cancel ();
138
- }
139
- });
140
-
141
location_entry.grab_focus ();
142
143
+ ~LocationPanel () {
+ if (search_cancellable != null) {
+ search_cancellable.cancel ();
+ }
+
+ if (find_cancellable != null) {
+ find_cancellable.cancel ();
144
145
146
/**
147
* Save the values in the dialog into the component.
148
*/
0 commit comments