Class: VaultGUI::ErrorPopup

Inherits:
MessageDialog
  • Object
show all
Defined in:
lib/gui.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, caption, kill) ⇒ ErrorPopup

Returns a new instance of ErrorPopup.



180
181
182
183
184
185
186
187
188
189
# File 'lib/gui.rb', line 180

def initialize (message, caption, kill)
  super(nil,
    :message => message,
    :caption => caption,
    :style => OK | ICON_ERROR)
  if self.show_modal == ID_OK && kill
    VaultGUI.vault.destroy
    Kernel.exit
  end
end