Page toolbar delete button active when only single page is present

Summary:

The delete page button in the page toolbar remains active even if only one page is present in the document.

Steps to reproduce:

  1. Open Inkscape
  2. Select the page tool
  3. Click the add page button in the page toolbar.
  4. Delete the added page by clicking the delete page button in the page toolbar.

What happened?

The delete page button is still active even if only a single page is present in the document. Clicking on the delete page button also registers a page deletion entry in the undo history dialog. ...

What should have happened?

The delete page button should become inactive.

I

Sample attachments: 2024-04-23_12-14-41

Version info

Inkscape 1.4-beta (62f545ba5e, 2024-04-22)

                      Compile  (Run)
    GLib version:     2.78.0
    GTK version:      3.24.38 (3.24.38)
    glibmm version:   2.66.6
    gtkmm version:    3.24.8
    libxml2 version:  2.9.14
    libxslt version:  1.1.35
    Cairo version:    1.18.0 (1.18.0)
    Pango version:    1.51.0 (1.51.0)
    HarfBuzz version: 8.0.1 (8.0.1)

    OS version:       Ubuntu 23.10
Edited by Adam Belis