From 24d5326db7530fc84ca7d27beeb37bfd247035da Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sat, 25 Apr 2026 22:34:27 -0700 Subject: [PATCH] Linux fixes. --- qt/lc_qpreferencesdialog.cpp | 4 ++-- qt/lc_renderdialog.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qt/lc_qpreferencesdialog.cpp b/qt/lc_qpreferencesdialog.cpp index 43a578d1..5d32155e 100644 --- a/qt/lc_qpreferencesdialog.cpp +++ b/qt/lc_qpreferencesdialog.cpp @@ -768,9 +768,9 @@ void lcQPreferencesDialog::CategoriesDropped(const QModelIndex& Parent, int Firs for (int Row = 0; Row < ui->categoriesTree->topLevelItemCount(); Row++) { QTreeWidgetItem* CategoryItem = ui->categoriesTree->topLevelItem(Row); - size_t CategoryIndex = CategoryItem->data(0, CategoryRole).toInt(); + int CategoryIndex = CategoryItem->data(0, CategoryRole).toInt(); - if (CategoryIndex >= 0 && CategoryIndex < mOptions->Categories.size()) + if (CategoryIndex >= 0 && CategoryIndex < static_cast(mOptions->Categories.size())) { Categories.emplace_back(mOptions->Categories[CategoryIndex]); CategoryItem->setData(0, CategoryRole, Row); diff --git a/qt/lc_renderdialog.cpp b/qt/lc_renderdialog.cpp index ffb39dda..17e7a06c 100644 --- a/qt/lc_renderdialog.cpp +++ b/qt/lc_renderdialog.cpp @@ -333,7 +333,7 @@ void lcRenderDialog::RenderPOVRay() lcRenderProcess* Process = new lcRenderProcess(this); #ifdef Q_OS_LINUX - connect(Process, &QProcess::readyReadStandardError, this, &lcRenderDialog::ReadStdErr); + connect(Process, &QProcess::readyReadStandardError, this, [this]() { bool Error; ReadStdErr(Error); }); #endif QStringList POVEnv = QProcess::systemEnvironment(); POVEnv.prepend("POV_IGNORE_SYSCONF_MSG=1");