mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Check for XSwiftBus version before download
This commit is contained in:
committed by
Mat Sutcliffe
parent
c900123af5
commit
b13035b3f9
@@ -57,6 +57,16 @@ namespace BlackMisc
|
||||
return this->findFirstByOrDefault(&CRemoteFile::getName, name);
|
||||
}
|
||||
|
||||
CRemoteFile CRemoteFileList::findFirstContainingNameOrDefault(const QString &name, Qt::CaseSensitivity cs) const
|
||||
{
|
||||
if (name.isEmpty()) { return CRemoteFile(); }
|
||||
for (const CRemoteFile &rf : *this)
|
||||
{
|
||||
if (rf.getName().contains(name, cs)) { return rf; }
|
||||
}
|
||||
return CRemoteFile();
|
||||
}
|
||||
|
||||
CRemoteFile CRemoteFileList::findFirstByMatchingNameOrDefault(const QString &name) const
|
||||
{
|
||||
if (name.isEmpty()) { return CRemoteFile(); }
|
||||
|
||||
Reference in New Issue
Block a user