printing: Avoid a crash

When no printer has been selected (e.g. because we don't
find any printers), the 'print at' radio group should be
insensitive, except for the 'now' choice. Selecting another
option in this situation will lead to a crash.
This commit is contained in:
Matthias Clasen
2020-03-28 15:22:13 -04:00
parent 784d6f8d0c
commit 173b1333ca

View File

@@ -830,6 +830,7 @@
</child>
<child>
<object class="GtkRadioButton" id="print_at_radio">
<property name="sensitive">0</property>
<property name="label" translatable="yes" comments="this is one of the choices for the print at option in the print dialog. It also serves as the label for an entry that allows the user to enter a time.">A_t:</property>
<property name="can-focus">1</property>
<property name="has-tooltip">1</property>
@@ -872,6 +873,7 @@
</child>
<child>
<object class="GtkRadioButton" id="print_hold_radio">
<property name="sensitive">0</property>
<property name="label" translatable="yes" comments="this is one of the choices for the print at option in the print dialog. It means that the print job will not be printed until it explicitly gets &apos;released&apos;.">On _hold</property>
<property name="can-focus">1</property>
<property name="has-tooltip">1</property>