aboutsummaryrefslogtreecommitdiff
path: root/xbmc/dialogs/GUIDialogSimpleMenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/dialogs/GUIDialogSimpleMenu.cpp')
-rw-r--r--xbmc/dialogs/GUIDialogSimpleMenu.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/xbmc/dialogs/GUIDialogSimpleMenu.cpp b/xbmc/dialogs/GUIDialogSimpleMenu.cpp
index 2049e2615c..fed153fb16 100644
--- a/xbmc/dialogs/GUIDialogSimpleMenu.cpp
+++ b/xbmc/dialogs/GUIDialogSimpleMenu.cpp
@@ -29,8 +29,6 @@
#include "video/VideoFileItemClassify.h"
#include "video/VideoInfoTag.h"
-std::string m_savePath;
-
using namespace KODI;
namespace
@@ -59,10 +57,9 @@ bool CGUIDialogSimpleMenu::ShowPlaySelection(CFileItem& item, bool forceSelectio
if (CServiceBroker::GetSettingsComponent()->GetSettings()->GetInt(CSettings::SETTING_DISC_PLAYBACK) != BD_PLAYBACK_SIMPLE_MENU)
return true;
- m_savePath = "";
- if (VIDEO::IsBlurayPlaylist(item) && forceSelection)
+ if (forceSelection && VIDEO::IsBlurayPlaylist(item))
{
- m_savePath = item.GetDynPath(); // save for screen refresh later
+ item.SetProperty("save_dyn_path", item.GetDynPath()); // save for screen refresh later
item.SetDynPath(item.GetBlurayPath());
}
@@ -135,11 +132,14 @@ bool CGUIDialogSimpleMenu::ShowPlaySelection(CFileItem& item, const std::string&
if (item_new->m_bIsFolder == false)
{
- if (m_savePath.empty()) // If not set above (choose playlist selected)
- m_savePath = item.GetDynPath();
+ std::string path;
+ if (item.HasProperty("save_dyn_path"))
+ path = item.GetProperty("save_dyn_path").asString();
+ else
+ path = item.GetDynPath(); // If not set above (choose playlist selected)
item.SetDynPath(item_new->GetDynPath());
item.SetProperty("get_stream_details_from_player", true);
- item.SetProperty("original_listitem_url", m_savePath);
+ item.SetProperty("original_listitem_url", path);
return true;
}