From 4a54de45b40483e578fa3e97784532e57fedbe52 Mon Sep 17 00:00:00 2001 From: chriszero Date: Tue, 23 Jun 2015 20:53:13 +0200 Subject: Fixes segfault with recent skindesigner. --- browserGrid.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'browserGrid.cpp') diff --git a/browserGrid.cpp b/browserGrid.cpp index c0cd03a..4dff8a0 100644 --- a/browserGrid.cpp +++ b/browserGrid.cpp @@ -6,7 +6,7 @@ #include "plex.h" #include "pictureCache.h" -cBrowserGrid::cBrowserGrid(skindesignerapi::cOsdView* rootView) : cViewGridNavigator(rootView) +cBrowserGrid::cBrowserGrid(std::shared_ptr rootView) : cViewGridNavigator(rootView) { m_pBackground = std::shared_ptr(rootView->GetViewElement(eViewElementsRoot::verBackground)); m_pHeader = std::shared_ptr(rootView->GetViewElement(eViewElementsRoot::verHeader)); @@ -23,13 +23,13 @@ cBrowserGrid::cBrowserGrid(skindesignerapi::cOsdView* rootView) : cViewGridNavig Config *conf = &Config::GetInstance(); if(conf->DefaultViewMode == ViewMode::Cover) { - SetViewGrid(std::shared_ptr(m_pRootView->GetViewGrid(eViewGrids::vgCover) )); + SetViewGrid(std::shared_ptr(rootView->GetViewGrid(eViewGrids::vgCover) )); SetGridDimensions(conf->CoverGridRows, conf->CoverGridColumns); } else if(conf->DefaultViewMode == ViewMode::Detail) { - SetViewGrid(std::shared_ptr(m_pRootView->GetViewGrid(eViewGrids::vgDetail) )); + SetViewGrid(std::shared_ptr(rootView->GetViewGrid(eViewGrids::vgDetail) )); SetGridDimensions(conf->DetailGridRows, conf->DetailGridColumns); } else if(conf->DefaultViewMode == ViewMode::List) { - SetViewGrid(std::shared_ptr(m_pRootView->GetViewGrid(eViewGrids::vgList) )); + SetViewGrid(std::shared_ptr(rootView->GetViewGrid(eViewGrids::vgList) )); SetGridDimensions(conf->ListGridRows, conf->ListGridColumns); } -- cgit v1.2.3