Skip to content

Commit 515fc70

Browse files
committed
profile search path priority
1 parent 806ea0d commit 515fc70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Qor/Session.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ std::vector<std::string> Session :: saved_profiles() const
2323
{
2424
std::vector<std::string> profiles;
2525
vector<path> profile_dirs {
26-
path("profiles"),
27-
path(fs::configdir(m_App)) / "profiles"
26+
path(fs::configdir(m_App)) / "profiles",
27+
path("profiles")
2828
};
2929

3030
for(auto jtr = profile_dirs.begin();
@@ -46,6 +46,8 @@ std::vector<std::string> Session :: saved_profiles() const
4646
}
4747
}catch(...){
4848
}
49+
if(not profiles.empty())
50+
break;
4951
}
5052
return profiles;
5153
}

0 commit comments

Comments
 (0)