diff options
author | Angelo Naselli <anaselli@linux.it> | 2016-01-01 16:41:57 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2016-01-01 16:41:57 +0100 |
commit | bd52d8fa9689c8e8dd164618bfe489a003037866 (patch) | |
tree | 5d64501af64676d16b1c8bd7176b5457f14da19e /lib/ManaTools/Shared/GUI/Dialog.pm | |
parent | 6a54e267dd03c20d8c8229929037a2cd0853a6a5 (diff) | |
download | manatools-bd52d8fa9689c8e8dd164618bfe489a003037866.tar manatools-bd52d8fa9689c8e8dd164618bfe489a003037866.tar.gz manatools-bd52d8fa9689c8e8dd164618bfe489a003037866.tar.bz2 manatools-bd52d8fa9689c8e8dd164618bfe489a003037866.tar.xz manatools-bd52d8fa9689c8e8dd164618bfe489a003037866.zip |
Restored Icon and Title behaviour or they were missed in mpan,
using Shared::GUI::Dialog solves this problem
Diffstat (limited to 'lib/ManaTools/Shared/GUI/Dialog.pm')
-rw-r--r-- | lib/ManaTools/Shared/GUI/Dialog.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ManaTools/Shared/GUI/Dialog.pm b/lib/ManaTools/Shared/GUI/Dialog.pm index 76095360..62f4b6ee 100644 --- a/lib/ManaTools/Shared/GUI/Dialog.pm +++ b/lib/ManaTools/Shared/GUI/Dialog.pm @@ -454,6 +454,7 @@ sub addButtons { sub call { my $self = shift; my $oldAppTitle = yui::YUI::app()->applicationTitle(); + my $oldAppIcon = yui::YUI::app()->applicationIcon(); ## set new title to get it in dialog yui::YUI::app()->setApplicationTitle($self->title()); @@ -502,8 +503,10 @@ sub call { # end dialog $ydialog->destroy(); - #restore old application title + # restore old application title and icon yui::YUI::app()->setApplicationTitle($oldAppTitle) if $oldAppTitle; + yui::YUI::app()->setApplicationIcon($self->icon()) if $oldAppIcon; + return $result; } |