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 commit6702f26186
. Fixes #2035 (cherry picked from commit57888a3290
)
This commit is contained in:
parent
741177311b
commit
0e6e8673f2
|
@ -410,9 +410,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
|
||||
|
|
Loading…
Reference in New Issue
Block a user