From ce90c083a3e53394d23e5a18d19e78137b6d800f Mon Sep 17 00:00:00 2001 From: matteo Date: Sat, 28 Jun 2014 12:03:56 +0300 Subject: fixed call to ask_YesOrNo --- lib/AdminPanel/rpmdragora.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/AdminPanel/rpmdragora.pm b/lib/AdminPanel/rpmdragora.pm index 80f06cd2..cae9879e 100644 --- a/lib/AdminPanel/rpmdragora.pm +++ b/lib/AdminPanel/rpmdragora.pm @@ -250,11 +250,8 @@ sub getbanner() { # - 1 if if Yes/Ok sub interactive_msg { my ($title, $contents, %options) = @_; - my $param; - $param->{title} = $title; - $param->{text} = $contents; - $param->{richtext} = 0; - return AdminPanel::Shared::GUI::ask_YesOrNo($param); + my $sh_gui = AdminPanel::Shared::GUI->new(); + return $sh_gui->ask_YesOrNo({ title => $title, text => $contents, richtext => 0}); =comment $options{transient} ||= $::main_window if $::main_window; local $::isEmbedded; -- cgit v1.2.1