Skip to content

Commit

Permalink
Thanks to MSVC warning, fix DoReadProjectTemplatesFromFolder (#3481)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 authored Sep 25, 2024
1 parent 6eb34f1 commit 0221587
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Plugin/globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,6 @@ static void DoReadProjectTemplatesFromFolder(const wxString& folder, std::list<P
bool loadDefaults = true)
{
// read all files under this directory
wxArrayString files;
if (wxFileName::DirExists(folder)) {
DirTraverser dt("*.project");

Expand Down Expand Up @@ -761,7 +760,7 @@ static void DoReadProjectTemplatesFromFolder(const wxString& folder, std::list<P
}
}

if (loadDefaults && files.IsEmpty()) {
if (loadDefaults && list.empty()) {
// if we ended up here, it means the installation got screwed up since
// there should be at least 8 project templates !
// create 3 default empty projects
Expand Down

0 comments on commit 0221587

Please sign in to comment.