diff --git a/RedPandaIDE/compiler/projectcompiler.cpp b/RedPandaIDE/compiler/projectcompiler.cpp index f01288d2..82277466 100644 --- a/RedPandaIDE/compiler/projectcompiler.cpp +++ b/RedPandaIDE/compiler/projectcompiler.cpp @@ -478,7 +478,7 @@ void ProjectCompiler::writeMakeObjFilesRules(QFile &file) if (sourceEncoding==ENCODING_SYSTEM_DEFAULT) sourceEncoding = defaultSystemEncoding; - if (sourceEncoding!=targetEncoding) { + if (QString::compare(sourceEncoding,targetEncoding,Qt::CaseInsensitive)!=0) { encodingStr = QString(" -finput-charset=%1 -fexec-charset=%2") .arg(QString(sourceEncoding), QString(targetEncoding)); diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index b875b9b4..3ee5eefa 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -399,10 +399,10 @@ MainWindow::MainWindow(QWidget *parent) m=ui->treeFiles->selectionModel(); ui->treeFiles->setModel(&mFileSystemModel); delete m; - connect(&mFileSystemModel, &QFileSystemModel::layoutChanged, - this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection); - connect(&mFileSystemModel, &QFileSystemModel::fileRenamed, - this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection); + // connect(&mFileSystemModel, &QFileSystemModel::layoutChanged, + // this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection); + // connect(&mFileSystemModel, &QFileSystemModel::fileRenamed, + // this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection); connect(&mFileSystemModel, &QFileSystemModel::fileRenamed, this, &MainWindow::onFileRenamedInFileSystemModel); mFileSystemModel.setReadOnly(false);