Commit e3d7c5d5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to load group from default directory too

parent 0fc6a717
Pipeline #51708 failed with stage
in 8 minutes and 9 seconds
......@@ -34,6 +34,11 @@ QString LoadGroupMenu::defaultWritableGroupPath()
return QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + QLatin1String("/groups");
}
QStringList LoadGroupMenu::defaultReadableGroupPath() const
{
return QStandardPaths::locateAll(QStandardPaths::AppLocalDataLocation, QLatin1String("/groups"), QStandardPaths::LocateFile);
}
void LoadGroupMenu::init()
{
// Load all ?
......
......@@ -31,6 +31,7 @@ Q_SIGNALS:
private:
void init();
QStringList mGroupNames;
Q_REQUIRED_RESULT QStringList defaultReadableGroupPath() const;
};
#endif // LOADGROUPMENU_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment