1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-09 00:58:15 +03:00

remove configuration window on hiding

This commit is contained in:
Michail Vourlakos 2017-02-27 11:25:51 +02:00
parent 5f5cfbad35
commit de30d48f72

View File

@ -42,6 +42,7 @@ DockConfigView::DockConfigView(Plasma::Containment *containment, DockView *dockV
m_dockView(dockView)
{
setScreen(m_dockView->screen());
if (containment) {
setIcon(QIcon::fromTheme(containment->corona()->kPackage().metadata().iconName()));
}
@ -205,6 +206,8 @@ void DockConfigView::hideEvent(QHideEvent *ev)
m_dockView->containment()->setUserConfiguring(false);
QQuickWindow::hideEvent(ev);
deleteLater();
}
void DockConfigView::focusOutEvent(QFocusEvent *ev)