diff --git a/NEWS.md b/NEWS.md
index 8932515d..f7eeae3a 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -18,6 +18,8 @@ Red Panda C++ Version 1.0.2
- fix: error in auto generate makefile under linux
- fix: when open a project, and it's missing compiler set getten reset, it's modification flag is not correctly set.
- fix: vector vars can't be expanded in the watch panel
+ - change: use qt's mingw 8.1 (32bit) and 11.2 (64bit) in distributions, to provide better compatibility with simplified chinese windows.
+ - fix: crash when rename an openned file, and choose "no" when ask if keep the editor open
Red Panda C++ Version 1.0.1
- fix: only convert project icon file when it's filename doesn't end with ".ico"
diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp
index ef9c0cb0..40c4dfa7 100644
--- a/RedPandaIDE/mainwindow.cpp
+++ b/RedPandaIDE/mainwindow.cpp
@@ -4129,6 +4129,7 @@ void MainWindow::onFileChanged(const QString &path)
}
}
} else {
+ mFileSystemWatcher.removePath(path);
if (QMessageBox::question(this,tr("File Changed"),
tr("File '%1' was removed.").arg(path)+"
" + tr("Keep it open?"),
QMessageBox::Yes|QMessageBox::No,
@@ -4138,7 +4139,6 @@ void MainWindow::onFileChanged(const QString &path)
e->setModified(true);
e->updateCaption();
}
- mFileSystemWatcher.removePath(e->filename());
}
}
}
@@ -6507,8 +6507,10 @@ void MainWindow::on_actionLocate_in_Files_View_triggered()
Editor * editor = mEditorList->getEditor();
if (editor) {
QFileInfo fileInfo(editor->filename());
+ qDebug()<filename());
diff --git a/windows/installer-scripts/config.nsh.in b/windows/installer-scripts/config.nsh.in
index bd3295b0..19e24ac9 100644
--- a/windows/installer-scripts/config.nsh.in
+++ b/windows/installer-scripts/config.nsh.in
@@ -1,6 +1,6 @@
####################################################################
# Startup
-!define COMPILERNAME \"MinGW-w64 X86_64 GCC 10.3\"
+!define COMPILERNAME \"MinGW-w64 X86_64 GCC 11.2\"
!define DEVCPP_VERSION \"$${APP_VERSION}\"
diff --git a/windows/installer-scripts/config32.nsh.in b/windows/installer-scripts/config32.nsh.in
index 607e5aaa..a441badb 100644
--- a/windows/installer-scripts/config32.nsh.in
+++ b/windows/installer-scripts/config32.nsh.in
@@ -1,6 +1,6 @@
####################################################################
# Startup
-!define COMPILERNAME \"MinGW-w64 i686 GCC 10.3\"
+!define COMPILERNAME \"MinGW-w64 i686 GCC 8.1\"
!define DEVCPP_VERSION \"$${APP_VERSION}\"