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,8 +203,10 @@ class AdvancedSearchItem : public GuiComponent,
void void
show(void) throw () show(void) throw ()
{ {
if (!enclosingBox->is_visible()) {
enclosingBox->show(); enclosingBox->show();
} }
}
/** /**
* Hide the widget. * Hide the widget.
@ -212,8 +214,10 @@ class AdvancedSearchItem : public GuiComponent,
void void
hide(void) throw () hide(void) throw ()
{ {
if (enclosingBox->is_visible()) {
enclosingBox->hide(); enclosingBox->hide();
} }
}
}; };

View file

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