Skip to content

Commit

Permalink
Attempt to prevent confirmation dialogues with messed-up parents
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Dec 14, 2017
1 parent edc15ad commit 8f582cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions globals.pike
Expand Up @@ -145,6 +145,7 @@ class confirm
inherit MessageBox;
void create(int flags,string message,GTK2.Window parent,function cb,mixed|void cb_arg)
{
if (!parent) {cb(cb_arg); return;}
::create(flags,GTK2.MESSAGE_WARNING,GTK2.BUTTONS_OK_CANCEL,message,parent,cb,cb_arg);
}
void response(object self,int button,mixed cb_arg)
Expand Down

0 comments on commit 8f582cb

Please sign in to comment.