summaryrefslogtreecommitdiff
path: root/browserGrid.cpp
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-06-23 20:53:13 +0200
committerchriszero <zerov83@gmail.com>2015-06-23 20:53:13 +0200
commit4a54de45b40483e578fa3e97784532e57fedbe52 (patch)
tree2859fedf22bdf418e2517aa19810c4a0e8126c3b /browserGrid.cpp
parent7688256dac7261f2461776fadbcd3185a2a42b4f (diff)
downloadvdr-plugin-plex-4a54de45b40483e578fa3e97784532e57fedbe52.tar.gz
vdr-plugin-plex-4a54de45b40483e578fa3e97784532e57fedbe52.tar.bz2
Fixes segfault with recent skindesigner.
Diffstat (limited to 'browserGrid.cpp')
-rw-r--r--browserGrid.cpp8
1 files changed, 4 insertions, 4 deletions
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<skindesignerapi::cOsdView> rootView) : cViewGridNavigator(rootView)
{
m_pBackground = std::shared_ptr<skindesignerapi::cViewElement>(rootView->GetViewElement(eViewElementsRoot::verBackground));
m_pHeader = std::shared_ptr<skindesignerapi::cViewElement>(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<skindesignerapi::cViewGrid>(m_pRootView->GetViewGrid(eViewGrids::vgCover) ));
+ SetViewGrid(std::shared_ptr<skindesignerapi::cViewGrid>(rootView->GetViewGrid(eViewGrids::vgCover) ));
SetGridDimensions(conf->CoverGridRows, conf->CoverGridColumns);
} else if(conf->DefaultViewMode == ViewMode::Detail) {
- SetViewGrid(std::shared_ptr<skindesignerapi::cViewGrid>(m_pRootView->GetViewGrid(eViewGrids::vgDetail) ));
+ SetViewGrid(std::shared_ptr<skindesignerapi::cViewGrid>(rootView->GetViewGrid(eViewGrids::vgDetail) ));
SetGridDimensions(conf->DetailGridRows, conf->DetailGridColumns);
} else if(conf->DefaultViewMode == ViewMode::List) {
- SetViewGrid(std::shared_ptr<skindesignerapi::cViewGrid>(m_pRootView->GetViewGrid(eViewGrids::vgList) ));
+ SetViewGrid(std::shared_ptr<skindesignerapi::cViewGrid>(rootView->GetViewGrid(eViewGrids::vgList) ));
SetGridDimensions(conf->ListGridRows, conf->ListGridColumns);
}