fix #643,protect enabledBorders for InfoView

pull/1/head
Michail Vourlakos 8 years ago
parent 02ebb701c9
commit a537572d42

@ -60,20 +60,18 @@ InfoView::InfoView(DockCorona *corona, QString message, QScreen *screen, QWindow
InfoView::~InfoView()
{
PanelShadows::self()->removeWindow(this);
qDebug() << "InfoView deleting ...";
if (m_shellSurface) {
delete m_shellSurface;
m_shellSurface = nullptr;
}
}
void InfoView::init()
{
PanelShadows::self()->addWindow(this);
PanelShadows::self()->setEnabledBorders(this, m_borders);
rootContext()->setContextProperty(QStringLiteral("infoWindow"), this);
KDeclarative::KDeclarative kdeclarative;
@ -129,6 +127,9 @@ void InfoView::showEvent(QShowEvent *ev)
syncGeometry();
QTimer::singleShot(400, this, &InfoView::syncGeometry);
PanelShadows::self()->addWindow(this);
PanelShadows::self()->setEnabledBorders(this, m_borders);
}
void InfoView::setupWaylandIntegration()

@ -32,7 +32,7 @@ PlasmaCore.FrameSvgItem {
imagePath: "widgets/panel-background"
prefix:""
enabledBorders: infoWindow.enabledBorders
enabledBorders: infoWindow ? infoWindow.enabledBorders : 0
width: Screen.width + 1
height: Math.min(Screen.height - units.gridUnit * 8, logo.height + messageLbl.height + 2 *units.gridUnit)

Loading…
Cancel
Save