Dynamic profiles wasn't loaded in Preference (#3691)
This commit is contained in:
@@ -246,8 +246,12 @@ bool DynamicProfileRules::storeRules()
|
||||
return kf.save_to_file (Glib::build_filename (Options::rtdir, "dynamicprofile.cfg"));
|
||||
}
|
||||
|
||||
const std::vector<DynamicProfileRule> &DynamicProfileRules::getRules() const
|
||||
const std::vector<DynamicProfileRule> &DynamicProfileRules::getRules()
|
||||
{
|
||||
if (!rulesLoaded) {
|
||||
loadRules();
|
||||
}
|
||||
|
||||
return dynamicRules;
|
||||
}
|
||||
|
||||
|
@@ -72,7 +72,7 @@ protected:
|
||||
public:
|
||||
bool loadRules();
|
||||
bool storeRules();
|
||||
const std::vector<DynamicProfileRule> &getRules() const;
|
||||
const std::vector<DynamicProfileRule> &getRules();
|
||||
void setRules (const std::vector<DynamicProfileRule> &r);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user