mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 13:53:37 -07:00
Merge pull request #19396 from Chocobo1/ci
GHA CI: specify a category for CodeQL analysis
This commit is contained in:
commit
e68cf87f05
3 changed files with 5 additions and 3 deletions
2
.github/workflows/ci_ubuntu.yaml
vendored
2
.github/workflows/ci_ubuntu.yaml
vendored
|
@ -94,6 +94,8 @@ jobs:
|
||||||
- name: Run CodeQL analysis
|
- name: Run CodeQL analysis
|
||||||
uses: github/codeql-action/analyze@v2
|
uses: github/codeql-action/analyze@v2
|
||||||
if: startsWith(matrix.libt_version, 2) && (matrix.qbt_gui == 'GUI=ON') && startsWith(matrix.qt_version, 6)
|
if: startsWith(matrix.libt_version, 2) && (matrix.qbt_gui == 'GUI=ON') && startsWith(matrix.qt_version, 6)
|
||||||
|
with:
|
||||||
|
category: ${{ github.base_ref || github.ref_name }}
|
||||||
|
|
||||||
- name: Prepare build artifacts
|
- name: Prepare build artifacts
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -12,7 +12,7 @@ set(CMAKE_AUTORCC_OPTIONS --compress 9 --threshold 5)
|
||||||
|
|
||||||
add_library(qbt_common_cfg INTERFACE)
|
add_library(qbt_common_cfg INTERFACE)
|
||||||
|
|
||||||
# Full C++ 20 support is required
|
# C++ 20 support is required
|
||||||
# See also https://cmake.org/cmake/help/latest/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html
|
# See also https://cmake.org/cmake/help/latest/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html
|
||||||
# for a breakdown of the features that CMake recognizes for each C++ standard
|
# for a breakdown of the features that CMake recognizes for each C++ standard
|
||||||
target_compile_features(qbt_common_cfg INTERFACE
|
target_compile_features(qbt_common_cfg INTERFACE
|
||||||
|
|
|
@ -151,8 +151,8 @@ public:
|
||||||
? BitTorrent::TorrentContentLayout::NoSubfolder
|
? BitTorrent::TorrentContentLayout::NoSubfolder
|
||||||
: BitTorrent::TorrentContentLayout::Subfolder);
|
: BitTorrent::TorrentContentLayout::Subfolder);
|
||||||
|
|
||||||
if (!m_filePriorities.isEmpty())
|
if (const int fileCount = filesCount(); !m_filePriorities.isEmpty() && (fileCount >= 0))
|
||||||
m_filePriorities.resize(filesCount(), BitTorrent::DownloadPriority::Normal);
|
m_filePriorities.resize(fileCount, BitTorrent::DownloadPriority::Normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasMetadata() const override
|
bool hasMetadata() const override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue