Fix keymap.
[vuplus_xbmc] / xbmc / AutoSwitch.cpp
index 13b9541..f97e400 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *      Copyright (C) 2005-2013 Team XBMC
- *      http://www.xbmc.org
+ *      http://xbmc.org
  *
  *  This Program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  */
 
 #include "AutoSwitch.h"
-#include "settings/GUISettings.h"
-#include "guilib/GUIWindowManager.h"
 #include "FileItem.h"
+#include "guilib/GUIWindowManager.h"
 #include "guilib/WindowIDs.h"
+#include "settings/Settings.h"
 #include "view/ViewState.h"
 
 #define METHOD_BYFOLDERS  0
@@ -44,7 +44,7 @@ int CAutoSwitch::GetView(const CFileItemList &vecItems)
   int iSortMethod = -1;
   int iPercent = 0;
   int iCurrentWindow = g_windowManager.GetActiveWindow();
-  bool bHideParentFolderItems = !g_guiSettings.GetBool("filelists.showparentdiritems");
+  bool bHideParentFolderItems = !CSettings::Get().GetBool("filelists.showparentdiritems");
 
   switch (iCurrentWindow)
   {