Skip to content
This repository
Browse code

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

  • Loading branch information...
commit ff5fac9e55006f72babd5fd38ae9d39c6d88e1df 1 parent a1dd552
wsoltys authored August 19, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xbmc/view/ViewDatabase.cpp
2  xbmc/view/ViewDatabase.cpp
@@ -207,7 +207,7 @@ bool CViewDatabase::SetViewState(const CStdString &path, int window, const CView
207 207
     { // add the view
208 208
       m_pDS->close();
209 209
       sql = PrepareSQL("insert into view (idView, path, window, viewMode, sortMethod, sortOrder, sortAttributes, skin) values(NULL, '%s', %i, %i, %i, %i, %i, '%s')",
210  
-        path1.c_str(), window, state.m_viewMode, (int)state.m_sortDescription.sortOrder, (int)state.m_sortDescription.sortAttributes, skin.c_str());
  210
+        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());
211 211
       m_pDS->exec(sql.c_str());
212 212
     }
213 213
   }

0 notes on commit ff5fac9

Please sign in to comment.
Something went wrong with that request. Please try again.