mirror of
https://github.com/leozide/leocad.git
synced 2026-07-27 19:56:49 +00:00
Linux fixes.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user