1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-06-30 22:54:23 +00:00

Revert "ev-view-presentation: Simplify reset_jobs calls"

This reverts commit 6702f26186.

Fixes #2035
This commit is contained in:
Nelson Benítez León 2024-06-01 18:28:56 +01:00
parent ac6cfa7f35
commit 57888a3290

View File

@ -400,9 +400,20 @@ ev_view_presentation_delete_job (EvViewPresentation *pview,
static void
ev_view_presentation_reset_jobs (EvViewPresentation *pview)
{
ev_view_presentation_delete_job (pview, pview->curr_job);
ev_view_presentation_delete_job (pview, pview->prev_job);
ev_view_presentation_delete_job (pview, pview->next_job);
if (pview->curr_job) {
ev_view_presentation_delete_job (pview, pview->curr_job);
pview->curr_job = NULL;
}
if (pview->prev_job) {
ev_view_presentation_delete_job (pview, pview->prev_job);
pview->prev_job = NULL;
}
if (pview->next_job) {
ev_view_presentation_delete_job (pview, pview->next_job);
pview->next_job = NULL;
}
}
static void