"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xbmc/interfaces/builtins/GUIBuiltins.cpp" between
xbmc-18.8-Leia.tar.gz and xbmc-18.9-Leia.tar.gz

About: XBMC is a software media player and entertainment hub for digital media that plays almost all popular audio and video formats around (new name "Kodi").

GUIBuiltins.cpp  (xbmc-18.8-Leia):GUIBuiltins.cpp  (xbmc-18.9-Leia)
skipping to change at line 88 skipping to change at line 88
{ {
// compare the given directory param with the current active directory // compare the given directory param with the current active directory
bool bIsSameStartFolder = true; bool bIsSameStartFolder = true;
if (!params.empty()) if (!params.empty())
{ {
CGUIWindow *activeWindow = CServiceBroker::GetGUI()->GetWindowManager().Ge tWindow(CServiceBroker::GetGUI()->GetWindowManager().GetActiveWindow()); CGUIWindow *activeWindow = CServiceBroker::GetGUI()->GetWindowManager().Ge tWindow(CServiceBroker::GetGUI()->GetWindowManager().GetActiveWindow());
if (activeWindow && activeWindow->IsMediaWindow()) if (activeWindow && activeWindow->IsMediaWindow())
bIsSameStartFolder = static_cast<CGUIMediaWindow*>(activeWindow)->IsSame StartFolder(params[0]); bIsSameStartFolder = static_cast<CGUIMediaWindow*>(activeWindow)->IsSame StartFolder(params[0]);
} }
// let the window know it is being replaced
if (Replace)
params.emplace_back("replace");
// activate window only if window and path differ from the current active wi ndow // activate window only if window and path differ from the current active wi ndow
if (iWindow != CServiceBroker::GetGUI()->GetWindowManager().GetActiveWindow( ) || !bIsSameStartFolder) if (iWindow != CServiceBroker::GetGUI()->GetWindowManager().GetActiveWindow( ) || !bIsSameStartFolder)
{ {
g_application.WakeUpScreenSaverAndDPMS(); g_application.WakeUpScreenSaverAndDPMS();
CServiceBroker::GetGUI()->GetWindowManager().ActivateWindow(iWindow, param s, Replace); CServiceBroker::GetGUI()->GetWindowManager().ActivateWindow(iWindow, param s, Replace);
return 0; return 0;
} }
} }
else else
{ {
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)