summaryrefslogtreecommitdiff
path: root/dev-util/qdevicemonitor/files/qdevicemonitor-1.0.1-crash-after-fresh-install.patch
blob: e01dbf97ba2ac0e250b18686296801976236986b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 079bc4cf3a59a98c429b1db21fcf3f88c19d2bb5 Mon Sep 17 00:00:00 2001
From: Alexander Lopatin <alopatindev@gmail.com>
Date: Fri, 13 Jul 2018 18:37:42 +0300
Subject: [PATCH] fix crash that happens after fresh installation

Signed-off-by: Alexander Lopatin <alopatindev@gmail.com>
---
 qdevicemonitor/devices/DeviceFacade.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qdevicemonitor/devices/DeviceFacade.cpp b/qdevicemonitor/devices/DeviceFacade.cpp
index ced04b3..6df67eb 100644
--- a/qdevicemonitor/devices/DeviceFacade.cpp
+++ b/qdevicemonitor/devices/DeviceFacade.cpp
@@ -151,8 +151,8 @@ void DeviceFacade::loadSettings(const QSettings& s)
     if (darkTheme.isValid())
     {
         m_darkTheme = darkTheme.toBool();
-        m_colorTheme = ColorTheme::create(m_darkTheme);
     }
+    m_colorTheme = ColorTheme::create(m_darkTheme);
 
     const QVariant clearAndroidLog = s.value("clearAndroidLog");
     if (clearAndroidLog.isValid())
-- 
2.16.4