Switch to unified view

a/src/utils/appformime.cpp b/src/utils/appformime.cpp
...
...
149
        apps->push_back(it->second);
149
        apps->push_back(it->second);
150
    }
150
    }
151
    return true;
151
    return true;
152
}
152
}
153
153
154
bool DesktopDb::appByName(const string& nm, AppDef& app)
155
{
156
    for (AppMap::const_iterator it = m_appMap.begin();
157
         it != m_appMap.end(); it++) {
158
        for (vector<AppDef>::const_iterator it1 = it->second.begin();
159
             it1 != it->second.end(); it1++) {
160
            if (!nm.compare(it1->name)) {
161
                app.name = it1->name;
162
                app.command = it1->command;
163
                return true;
164
            }
165
        }
166
    }
167
    return false;
168
}
169
154
const string& DesktopDb::getReason()
170
const string& DesktopDb::getReason()
155
{
171
{
156
    return m_reason;
172
    return m_reason;
157
}
173
}
158
174