mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
make our crashes look more professional (no non-updating spaces)
svn path=/trunk/kdebase/nsplugins/; revision=392672
This commit is contained in:
parent
8a35770b0a
commit
afe1b590c6
|
@ -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)
|
||||
|
|
|
@ -50,6 +50,7 @@ public:
|
|||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
void windowChanged(WId w);
|
||||
class NSPluginLoader *_loader;
|
||||
bool shown;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue