Linux fixes.

This commit is contained in:
Leonardo Zide
2026-04-25 22:34:27 -07:00
parent f3f4eeb4e7
commit 24d5326db7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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<int>(mOptions->Categories.size()))
{
Categories.emplace_back(mOptions->Categories[CategoryIndex]);
CategoryItem->setData(0, CategoryRole, Row);
+1 -1
View File
@@ -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");