fix wrong recreated history causing wrong sort order (because viewstate not found...
authorVoyager1 <Voyager@xbmc.org>
Tue, 25 Dec 2012 08:27:48 +0000 (09:27 +0100)
committerVoyager1 <Voyager@xbmc.org>
Thu, 27 Dec 2012 08:04:09 +0000 (09:04 +0100)
xbmc/windows/GUIMediaWindow.cpp

index 04dad32..1361591 100644 (file)
@@ -1355,6 +1355,13 @@ void CGUIMediaWindow::SetHistoryForPath(const CStdString& strDirectory)
         }
       }
 
+      if (URIUtils::IsVideoDb(strPath))
+      {
+        CURL url(strParentPath);
+        url.SetOptions(""); // clear any URL options from recreated parent path
+        strParentPath = url.Get();
+      }
+
       URIUtils::AddSlashAtEnd(strPath);
       m_history.AddPathFront(strPath);
       m_history.SetSelectedItem(strPath, strParentPath);