GNOME Bugzilla – Bug 623562
Diagram Dialog generate diagrams without a selected device
Last modified: 2011-11-03 21:24:55 UTC
The user can generate a device diagram without select a device and the diagram dialog doesn't close automatically after generate the diagram.
Created attachment 165252 [details] [review] Solving device diagram dialog issues This prevent to generate a diagram when the user haven't selected a device and show a warning dialog with the message "You need choose some device to generate the diagram.". Other issue solved is when the diagram is generated, the diagram dialog doesn't close. Now the diagram dialog is close automatically after generate the diagram.
Hi Chihau. I changed a little the code for use a function that i use for showing messages. The other changes has been applied. md = gtk.MessageDialog(None, gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_WARNING, gtk.BUTTONS_CLOSE, "You need choose some device to generate the diagram.") md.run() md.destroy() result = gevice.show_message (_("You need choose some device to generate the diagram."),gtk.MESSAGE_WARNING,gtk.BUTTONS_OK) Thanks!