diff options
| author | Tannin <sherb@gmx.net> | 2015-12-07 20:09:34 +0100 |
|---|---|---|
| committer | Tannin <sherb@gmx.net> | 2015-12-07 20:09:34 +0100 |
| commit | 495846534d560f825819b7ee391e8c461ce76e4f (patch) | |
| tree | cd6b5c03cce72aaba8489ea61876313829c44a3a /src/categories.cpp | |
| parent | fe8c3aaea58400425b9195bb670a1b4e8c9db10d (diff) | |
- no longer displaying "not logged in". This was too confusing for some
- fixed files missing from vfs if parent directory exists in real destination dir
- implemented plugin api to access current profile
- steam game detection now also works for 64-bit games
- removed reference to archive tab from tutorial
- usvfs log level is now taken from config
- some cleanup
Diffstat (limited to 'src/categories.cpp')
| -rw-r--r-- | src/categories.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/categories.cpp b/src/categories.cpp index 400cc74b..f096a902 100644 --- a/src/categories.cpp +++ b/src/categories.cpp @@ -317,9 +317,11 @@ int CategoryFactory::getCategoryIndex(int ID) const int CategoryFactory::getCategoryID(const QString &name) const
{
- auto iter = std::find_if(m_Categories.begin(), m_Categories.end(), [name] (const Category &cat) -> bool {
+ auto iter = std::find_if(m_Categories.begin(), m_Categories.end(),
+ [name] (const Category &cat) -> bool {
return cat.m_Name == name;
});
+
if (iter != m_Categories.end()) {
return iter->m_ID;
} else {
|
