Skip to content

Commit 986a53b

Browse files
author
fft
committed
small fixes mainly related to Qt6.4
1 parent c615f96 commit 986a53b

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ubuntu_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Qt
2222
uses: jurplel/install-qt-action@v2.14.0
2323
with:
24-
version: 6.2.0
24+
version: 6.4.0
2525

2626
- name: Configure CMake
2727
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_QT6=ON

.github/workflows/windows_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ jobs:
1717
- uses: actions/checkout@v3
1818
with:
1919
fetch-depth: 0
20-
20+
2121
- name: Install Qt
2222
uses: jurplel/install-qt-action@v2.14.0
2323
with:
24-
version: 6.2.0
24+
version: 6.4.0
2525

2626
- name: Configure CMake
2727
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_SYSTEM_MIMETEX=OFF -DUSE_QT6=ON
2828

2929
- name: Build
3030
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --verbose
31-
31+
3232
- name: Install
3333
run: cmake --install ${{github.workspace}}/build
3434

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
3737
message(FATAL_ERROR "building under MacOS not supported")
3838
endif()
3939

40-
option(USE_QT6 ON)
40+
option(USE_QT6 "Use Qt6 instead of Qt5" ON)
4141

4242
if(USE_QT6)
4343
find_package(Qt6 COMPONENTS Core Linguist Network PrintSupport Widgets Xml REQUIRED)

app/src/libraries/crypt/Pbkdf2Qt.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ QByteArray Pbkdf2Qt::HmacSha1(QByteArray text,
6464
k_pad[i]=k_pad[i]^0x36;
6565

6666
ctx.reset();
67-
ctx.addData(k_pad, PBKDF2QT_SHA1_BLOCK_LENGTH);
67+
ctx.addData(k_pad);
6868
ctx.addData(text);
6969
digest=ctx.result();
7070

@@ -74,8 +74,8 @@ QByteArray Pbkdf2Qt::HmacSha1(QByteArray text,
7474
k_pad[i]=k_pad[i]^0x5c;
7575

7676
ctx.reset();
77-
ctx.addData(k_pad, PBKDF2QT_SHA1_BLOCK_LENGTH);
78-
ctx.addData(digest, PBKDF2QT_SHA1_DIGEST_LENGTH);
77+
ctx.addData(k_pad);
78+
ctx.addData(digest);
7979
digest=ctx.result();
8080

8181
return digest;

app/src/views/tree/TreeScreen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ void TreeScreen::importBranchFromDirectory(QString importDir)
13031303

13041304

13051305
// Если импорт данных был успешным
1306-
if(importNodeId.count()>0)
1306+
if(importNodeId.size()>0)
13071307
setCursorToId(importNodeId); // Курсор устанавливается на только что импортированную ветку
13081308

13091309
showMessageBox(tr("Item importing finished."));

0 commit comments

Comments
 (0)