don't try to hide the panel when the ui is not ready

This commit is contained in:
Marco Martin 2014-03-25 18:03:42 +01:00
parent 3abcc46231
commit c452c055da

View File

@ -61,12 +61,11 @@ PanelView::PanelView(ShellCorona *corona, QWindow *parent)
setColor(QColor(Qt::transparent)); setColor(QColor(Qt::transparent));
setFlags(Qt::FramelessWindowHint|Qt::WindowDoesNotAcceptFocus); setFlags(Qt::FramelessWindowHint|Qt::WindowDoesNotAcceptFocus);
KWindowSystem::setType(winId(), NET::Dock); KWindowSystem::setType(winId(), NET::Dock);
setVisible(false); setVisible(true);
themeChanged(); themeChanged();
connect(&m_theme, &Plasma::Theme::themeChanged, this, &PanelView::themeChanged); connect(&m_theme, &Plasma::Theme::themeChanged, this, &PanelView::themeChanged);
m_positionPaneltimer.setSingleShot(true); m_positionPaneltimer.setSingleShot(true);
m_positionPaneltimer.setInterval(150); m_positionPaneltimer.setInterval(150);
connect(&m_positionPaneltimer, &QTimer::timeout, connect(&m_positionPaneltimer, &QTimer::timeout,
@ -452,9 +451,6 @@ void PanelView::restore()
return; return;
} }
setVisible(containment()->isUiReady());
connect(containment(), &Plasma::Containment::uiReadyChanged,
this, &PanelView::setVisible);
connect(containment(), SIGNAL(destroyed(QObject *)), connect(containment(), SIGNAL(destroyed(QObject *)),
this, SLOT(deleteLater())); this, SLOT(deleteLater()));