void-packages/srcpkgs/spotify-qt/patches/fix-darkmode-toggle.patch
2021-02-22 12:43:57 -06:00

26 lines
823 B
Diff

https://github.com/kraxarn/spotify-qt/commit/fe916f8976cca3983030e24d02d65e62893ad88d.patch
From fe916f8976cca3983030e24d02d65e62893ad88d Mon Sep 17 00:00:00 2001
From: kraxarn <me@kraxarn.com>
Date: Sun, 7 Feb 2021 22:02:21 +0100
Subject: [PATCH] Fix crash when toggling dark theme
---
src/settingspage/interfacepage.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git src/settingspage/interfacepage.cpp src/settingspage/interfacepage.cpp
index d809730..be16455 100644
--- src/settingspage/interfacepage.cpp
+++ src/settingspage/interfacepage.cpp
@@ -215,7 +215,9 @@ void InterfacePage::darkThemeToggle(bool checked)
if (checked)
{
itfStyle->setCurrentText("Fusion");
- itfIcFallback->setChecked(true);
+
+ if (itfIcFallback != nullptr)
+ itfIcFallback->setChecked(true);
}
else
{