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

View File

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