diff options
author | Carlos Soriano <csoriano@gnome.org> | 2015-09-04 21:22:23 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-09-04 23:03:45 +0200 |
commit | 8754395da6d3454f0f29149627e661c7a93fd19c (patch) | |
tree | b41affe428abc961f7a0537bb5d4f35865fa1589 | |
parent | 2c3ec9c5ce60c7619ff6ea02697dbc76bca31c84 (diff) | |
download | nautilus-8754395da6d3454f0f29149627e661c7a93fd19c.tar.gz |
files-view: remove source for rename popover label timeout
If not, if we close the popover while the timeout is going,
we crash.
-rw-r--r-- | src/nautilus-files-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index 648b8ecde..65c10efa6 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -2032,6 +2032,10 @@ rename_file_popover_on_closed (GtkPopover *popover, widget_data = (FileNameWidgetData *) user_data; widget_data->view->details->rename_file_popover = NULL; + if (widget_data->view->details->duplicated_label_timeout_id > 0) { + g_source_remove (widget_data->view->details->duplicated_label_timeout_id); + widget_data->view->details->duplicated_label_timeout_id = 0; + } g_free (widget_data); } |