1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Merge pull request #413 from zrax/qt_tools

Port GUI Tools to Qt5
This commit is contained in:
2014-05-19 23:23:39 -04:00
51 changed files with 3968 additions and 3823 deletions

View File

@ -307,8 +307,8 @@ hsSemaphore::~hsSemaphore()
status = sem_close(fPSema);
} else {
status = sem_destroy(fPSema);
delete fPSema;
}
delete fPSema;
hsThrowIfOSErr(status);
#else
int status = ::pthread_cond_destroy(&fPCond);

View File

@ -394,7 +394,7 @@ std::vector<plFileName> plFileSystem::ListDir(const plFileName &path, const char
continue;
}
if (pattern && pattern[0] && fnmatch(pattern, de->d_name, 0))
if (pattern && pattern[0] && fnmatch(pattern, de->d_name, 0) == 0)
contents.push_back(dir_name);
else if (!pattern || !pattern[0])
contents.push_back(dir_name);