[graphics/kphotoalbum/videoBackend] lib/kpabase: Fix conditionals.
Randall Rude <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 1bb5f05e830c2a29de18ec9a2c8fa53956984558 by Randall Rude.
Committed on 09/08/2026 at 15:07.
Pushed by rsquared into branch 'videoBackend'.
Fix conditionals.
M +6 -2 lib/kpabase/SettingsData.cpp
https://invent.kde.org/graphics/kphotoalbum/-/commit/1bb5f05e830c2a29de18ec9a2c8fa53956984558
diff --git a/lib/kpabase/SettingsData.cpp b/lib/kpabase/SettingsData.cpp
index eaa9062ac..c25abf47c 100644
--- a/lib/kpabase/SettingsData.cpp
+++ b/lib/kpabase/SettingsData.cpp
@@ -385,7 +385,9 @@ setValueFunc_(setVideoBackend, VideoBackend, "Viewer"_L1, "videoBackend", static
// validate input:
switch (value) {
case VideoBackend::VLC:
-#if !LIBVLC_FOUND
+#if LIBVLC_FOUND
+ return value;
+#else
qCWarning(BaseLog) << "Configuration value for Viewer.videoBackend is not available. Ignoring value...";
return VideoBackend::NotConfigured;
#endif
@@ -395,7 +397,9 @@ setValueFunc_(setVideoBackend, VideoBackend, "Viewer"_L1, "videoBackend", static
return VideoBackend::NotConfigured;
break;
case Settings::VideoBackend::Phonon:
-#if !Phonon4Qt6_FOUND
+#if Phonon4Qt6_FOUND
+ return value;
+#else
qCWarning(BaseLog) << "Configuration value for Viewer.videoBackend is not available. Ignoring value...";
return VideoBackend::NotConfigured;
#endif