make our crashes look more professional (no non-updating spaces)

svn path=/trunk/kdebase/nsplugins/; revision=392672
This commit is contained in:
George Staikos 2005-02-23 20:36:19 +00:00
parent 8a35770b0a
commit afe1b590c6
2 changed files with 11 additions and 0 deletions

View file

@ -74,6 +74,16 @@ NSPluginInstance::~NSPluginInstance()
}
void NSPluginInstance::windowChanged(WId w)
{
setBackgroundMode(w == 0 ? QWidget::PaletteBackground : QWidget::NoBackground);
if (w == 0) {
// FIXME: Put a notice here to tell the user that it crashed.
repaint();
}
}
void NSPluginInstance::resizeEvent(QResizeEvent *event)
{
if (shown == false)

View file

@ -50,6 +50,7 @@ public:
protected:
void resizeEvent(QResizeEvent *event);
void windowChanged(WId w);
class NSPluginLoader *_loader;
bool shown;
};