mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-04 13:47:19 +03:00
fix crash from reloading View sources
This commit is contained in:
parent
dd79d5a0ed
commit
ed226761f9
@ -169,6 +169,10 @@ void CanvasConfigView::focusOutEvent(QFocusEvent *ev)
|
||||
{
|
||||
Q_UNUSED(ev);
|
||||
|
||||
if (!m_latteView) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto *focusWindow = qGuiApp->focusWindow();
|
||||
|
||||
if ((focusWindow && (focusWindow->flags().testFlag(Qt::Popup)
|
||||
|
@ -449,6 +449,10 @@ void PrimaryConfigView::focusOutEvent(QFocusEvent *ev)
|
||||
{
|
||||
Q_UNUSED(ev);
|
||||
|
||||
if (!m_latteView) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto *focusWindow = qGuiApp->focusWindow();
|
||||
|
||||
if (!m_latteView
|
||||
|
@ -252,6 +252,10 @@ void SecondaryConfigView::focusOutEvent(QFocusEvent *ev)
|
||||
{
|
||||
Q_UNUSED(ev);
|
||||
|
||||
if (!m_latteView) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto *focusWindow = qGuiApp->focusWindow();
|
||||
|
||||
if ((focusWindow && (focusWindow->flags().testFlag(Qt::Popup)
|
||||
|
Loading…
x
Reference in New Issue
Block a user