Skip to content

Commit

Permalink
Merge pull request linuxmint#1395 from leigh123linux/dont_reload_whil…
Browse files Browse the repository at this point in the history
…e_reload

Don't reload while a reload is ongoing
  • Loading branch information
clefebvre authored Feb 7, 2017
2 parents 340228c + c4af242 commit 66ff168
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/nemo-window-manage-views.c
Original file line number Diff line number Diff line change
Expand Up @@ -1868,6 +1868,13 @@ nemo_window_slot_reload (NemoWindowSlot *slot)
return;
}

if (slot->pending_location != NULL
|| slot->content_view == NULL
|| nemo_view_get_loading (slot->content_view)) {
/* there is a reload in flight */
return;
}

/* peek_slot_field (window, location) can be free'd during the processing
* of begin_location_change, so make a copy
*/
Expand Down

0 comments on commit 66ff168

Please sign in to comment.