end
def try_quit(*options)
- if ! $allentries.detect { |e| e.removed || e.labeled } ||
- show_popup($main_window,
- utf8(_("Are you sure you want to quit?")),
- { :okcancel => true })
+ if ! $allentries.detect { |e| e.removed || e.labeled } || show_popup($main_window,
+ utf8(_("You have not executed the classification. Are you sure you want to quit?")),
+ { :okcancel => true })
Gtk.main_quit
$quit = true
+ return false
+ else
+ return true
end
end
$main_window = create_window
$main_window.add(main_vbox)
$main_window.signal_connect('delete-event') {
- try_quit({ :disallow_cancel => true })
+ try_quit
}
#- read/save size and position of window