summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-03-18 15:54:10 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-03-18 15:54:10 +0000
commitc3413a4bcdd680860d49134d1327fcb648f06528 (patch)
tree313911162738b2c04610c025085994c2fd294ccd
parente95b8db8a1e8a8f4afdc950e532454c6a969a50f (diff)
downloadcontrol-center-c3413a4bcdd680860d49134d1327fcb648f06528.tar
control-center-c3413a4bcdd680860d49134d1327fcb648f06528.tar.gz
control-center-c3413a4bcdd680860d49134d1327fcb648f06528.tar.bz2
control-center-c3413a4bcdd680860d49134d1327fcb648f06528.tar.xz
control-center-c3413a4bcdd680860d49134d1327fcb648f06528.zip
fix hidden left icons when expert mode is altered several times
whereas a tool is embedded (#14440)
-rwxr-xr-xcontrol-center8
1 files changed, 6 insertions, 2 deletions
diff --git a/control-center b/control-center
index 7e27ae57..defba586 100755
--- a/control-center
+++ b/control-center
@@ -1261,7 +1261,7 @@ my $spacing = 25;
my %tool_callbacks;
-my ($page_count, $need_to_refresh);
+my ($page_count, $need_to_refresh, $is_freezed);
sub really_refresh_tree {
my $pos = $notebook_global->get_current_page;
@@ -1272,6 +1272,7 @@ sub really_refresh_tree {
# restore previous position:
$notebook_global->set_current_page($pos);
$notebook_global->window && $notebook_global->window->thaw_updates;
+ $is_freezed = 0;
}
sub request_url {
@@ -1283,7 +1284,10 @@ sub request_url {
sub refresh_tree {
my ($mode) = @_;
if ($mode && $page_count) {
- $notebook_global->window and $notebook_global->window->freeze_updates;
+ if (!$is_freezed && $notebook_global->window) {
+ $notebook_global->window->freeze_updates;
+ $is_freezed = 1;
+ }
$notebook_global->remove_page(-1) foreach 0..$page_count-1;
$page_count = 0;
}