Skip to content

Commit

Permalink
Fix build with Qt 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Feb 1, 2025
1 parent f8b3b81 commit 6fdca85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syncthingwidgets/misc/otherdialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ QDialog *browseRemoteFilesDialog(Data::SyncthingConnection &connection, const Da
auto deletionItems = QList<QtUtilities::ChecklistItem>();
deletionItems.reserve(localDeletions.size());
for (const auto &path : localDeletions) {
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
deletionItems.emplace_back(path, path, Qt::Checked);
#else
deletionItems.append(QtUtilities::ChecklistItem(path, path, Qt::Checked));
#endif
}
deletionModel->setItems(deletionItems);
deletionView->setModel(deletionModel);
Expand Down

0 comments on commit 6fdca85

Please sign in to comment.