From 7c7ebdabba9f71bc0f347becf3256ad7dfce5555 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Thu, 19 Feb 2015 09:02:52 +0100 Subject: Moved destroy after (seems to avoid a sometimes crash on exit), though maindialog is to big for an info message --- modules/rpmdragora/dragoraUpdate | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/rpmdragora/dragoraUpdate b/modules/rpmdragora/dragoraUpdate index 41f2306..8b84af5 100755 --- a/modules/rpmdragora/dragoraUpdate +++ b/modules/rpmdragora/dragoraUpdate @@ -1,8 +1,12 @@ #!/usr/bin/perl #***************************************************************************** # +# dragoraUpdate +# Copyright (c) 2014-2015 Angelo Naselli +# +# MandrivaUpdate and MageiaUpdate # Copyright (c) 2002 Guillaume Cottenceau -# Copyright (c) 2002-2007 Thierry Vignaud +# Copyright (c) 2002-2014 Thierry Vignaud # Copyright (c) 2003, 2004, 2005 MandrakeSoft SA # Copyright (c) 2005-2007 Mandriva SA # @@ -21,7 +25,6 @@ # #***************************************************************************** # -# $Id: MageiaUpdate 261845 2009-10-13 12:33:58Z tv $ use strict; use MDK::Common::Func 'any'; @@ -404,16 +407,17 @@ sub run_treeview_dialog { } } - $dialog->destroy(); - if (!$num_pkgs) { AdminPanel::rpmdragora::interactive_msg( $loc->N("rpmdragora update"), $loc->N("The list of updates is empty. This means that either there is no available update for the packages installed on your computer, or you already installed all of them."), - scroll => 1 + scroll => 1, + # main_dialog => 1, ); } + $dialog->destroy(); + #restore old application title yui::YUI::app()->setApplicationTitle($appTitle) if $appTitle; -- cgit v1.2.1