From a2aa3aacc458cf3fa23bbe5b928233cdc51612fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= <houhongxun@kylinos.cn>
Date: Tue, 16 Apr 2024 13:54:44 +0800
Subject: [PATCH] kylin-music: fix null pointer widget error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
---
 UI/player/searchresult.cpp | 4 ++--
 UI/player/searchresult.h   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/UI/player/searchresult.cpp b/UI/player/searchresult.cpp
index a8946c3..8f56e05 100644
--- a/UI/player/searchresult.cpp
+++ b/UI/player/searchresult.cpp
@@ -85,10 +85,10 @@ SearchResult::SearchResult(QWidget *parent) : QWidget(parent)
 
     vlayout->addWidget(m_MusicLabel, 1);
     vlayout->addWidget(m_MusicView, 0);
-    vlayout->addWidget(m_SingerFrame);
+    //vlayout->addWidget(m_SingerFrame);
     vlayout->addWidget(m_SingerLabel, 1);
     vlayout->addWidget(m_SingerView, 0);
-    vlayout->addWidget(m_AlbumFrame);
+    //vlayout->addWidget(m_AlbumFrame);
     vlayout->addWidget(m_AlbumLabel, 1);
     vlayout->addWidget(m_AlbumView, 0);
 
diff --git a/UI/player/searchresult.h b/UI/player/searchresult.h
index 6427af5..8f54373 100644
--- a/UI/player/searchresult.h
+++ b/UI/player/searchresult.h
@@ -84,8 +84,8 @@ private:
 
     int               m_CurrentIndex  = -1;
     int               m_Count         = 0;
-    QFrame *m_SingerFrame = nullptr;
-    QFrame *m_AlbumFrame  = nullptr;
+    //QFrame *m_SingerFrame = nullptr;
+    //QFrame *m_AlbumFrame  = nullptr;
 
     SearchEdit          *m_searchEdit = nullptr;
 
-- 
2.43.0

