From 83fb185921a0d1ed4ae51b1924c9ff4e66591832 Mon Sep 17 00:00:00 2001 From: Sergei Ilinykh Date: Tue, 2 Jul 2024 23:50:57 +0300 Subject: [PATCH] qt5 compat --- src/psithememanager.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/psithememanager.cpp b/src/psithememanager.cpp index 5adcff921..946362f3e 100644 --- a/src/psithememanager.cpp +++ b/src/psithememanager.cpp @@ -107,12 +107,10 @@ PsiThemeProvider::LoadRestult PsiThemeManager::loadAll() if (!ctx) { ctx = new QObject(this); } - connect( - provider, &PsiThemeProvider::themeChanged, ctx, - [ctx, provider, cleanup]() { cleanup(ctx, provider, false); }, Qt::SingleShotConnection); - connect( - provider, &PsiThemeProvider::currentLoadFailed, ctx, - [ctx, provider, required, cleanup]() { cleanup(ctx, provider, required); }, Qt::SingleShotConnection); + connect(provider, &PsiThemeProvider::themeChanged, ctx, + [ctx, provider, cleanup]() { cleanup(ctx, provider, false); }); + connect(provider, &PsiThemeProvider::currentLoadFailed, ctx, + [ctx, provider, required, cleanup]() { cleanup(ctx, provider, required); }); } d->loadResult = pending->isEmpty() ? PsiThemeProvider::LoadSuccess : PsiThemeProvider::LoadInProgress; return d->loadResult;