Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed: PrepareSQL in ViewDatabase.cpp was missing an argument.

  • Loading branch information...
commit ff5fac9e55006f72babd5fd38ae9d39c6d88e1df 1 parent a1dd552
wsoltys authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xbmc/view/ViewDatabase.cpp
View
2  xbmc/view/ViewDatabase.cpp
@@ -207,7 +207,7 @@ bool CViewDatabase::SetViewState(const CStdString &path, int window, const CView
{ // add the view
m_pDS->close();
sql = PrepareSQL("insert into view (idView, path, window, viewMode, sortMethod, sortOrder, sortAttributes, skin) values(NULL, '%s', %i, %i, %i, %i, %i, '%s')",
- path1.c_str(), window, state.m_viewMode, (int)state.m_sortDescription.sortOrder, (int)state.m_sortDescription.sortAttributes, skin.c_str());
+ path1.c_str(), window, state.m_viewMode, (int)state.m_sortDescription.sortBy, (int)state.m_sortDescription.sortOrder, (int)state.m_sortDescription.sortAttributes, skin.c_str());
m_pDS->exec(sql.c_str());
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.