This commit is contained in:
fgerlits 2007-08-21 14:34:48 +00:00
parent c72330142a
commit 2c123b1a2a
2 changed files with 14 additions and 6 deletions

View file

@ -203,7 +203,9 @@ class AdvancedSearchItem : public GuiComponent,
void void
show(void) throw () show(void) throw ()
{ {
enclosingBox->show(); if (!enclosingBox->is_visible()) {
enclosingBox->show();
}
} }
/** /**
@ -212,7 +214,9 @@ class AdvancedSearchItem : public GuiComponent,
void void
hide(void) throw () hide(void) throw ()
{ {
enclosingBox->hide(); if (enclosingBox->is_visible()) {
enclosingBox->hide();
}
} }
}; };

View file

@ -88,8 +88,10 @@ GuiWindow :: GuiWindow (const Glib::ustring & bundleName,
void void
GuiWindow :: show (void) throw () GuiWindow :: show (void) throw ()
{ {
preShow(); if (!mainWindow->is_visible()) {
mainWindow->show(); preShow();
mainWindow->show();
}
} }
@ -112,8 +114,10 @@ GuiWindow :: preShow (void) throw ()
void void
GuiWindow :: hide (void) throw () GuiWindow :: hide (void) throw ()
{ {
preHide(); if (mainWindow->is_visible()) {
mainWindow->hide(); preHide();
mainWindow->hide();
}
} }