ability to open rename dialog twice when we cancel first instance. Fixes #5587
This commit is contained in:
parent
9230f12496
commit
6406a9d710
|
@ -6,7 +6,7 @@
|
||||||
<property name="border_width">6</property>
|
<property name="border_width">6</property>
|
||||||
<property name="type_hint">dialog</property>
|
<property name="type_hint">dialog</property>
|
||||||
<property name="has_separator">False</property>
|
<property name="has_separator">False</property>
|
||||||
<signal name="delete_event" handler="on_input_dialog_delete_event"/>
|
<signal name="destroy" handler="on_input_dialog_destroy"/>
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<object class="GtkVBox" id="dialog-vbox10">
|
<object class="GtkVBox" id="dialog-vbox10">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
|
|
@ -1764,7 +1764,7 @@ class CommonInputDialog:
|
||||||
self.xml.connect_signals(self)
|
self.xml.connect_signals(self)
|
||||||
self.dialog.show_all()
|
self.dialog.show_all()
|
||||||
|
|
||||||
def on_input_dialog_delete_event(self, widget, event):
|
def on_input_dialog_destroy(self, widget):
|
||||||
if self.cancel_handler:
|
if self.cancel_handler:
|
||||||
self.cancel_handler()
|
self.cancel_handler()
|
||||||
|
|
||||||
|
@ -1788,7 +1788,7 @@ class InputDialog(CommonInputDialog):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, title, label_str, input_str=None, is_modal=True,
|
def __init__(self, title, label_str, input_str=None, is_modal=True,
|
||||||
ok_handler=None, cancel_handler=None):
|
ok_handler=None, cancel_handler=None):
|
||||||
self.xml = gtkgui_helpers.get_gtk_builder('input_dialog.ui')
|
self.xml = gtkgui_helpers.get_gtk_builder('input_dialog.ui')
|
||||||
CommonInputDialog.__init__(self, title, label_str, is_modal, ok_handler,
|
CommonInputDialog.__init__(self, title, label_str, is_modal, ok_handler,
|
||||||
cancel_handler)
|
cancel_handler)
|
||||||
|
|
Loading…
Reference in New Issue