- fix: should use c++ syntax to check ".h" files

- fix: can't copy contents in a readonly editor
 - fix: project's file not correctly syntaxed when open in editor
This commit is contained in:
royqh1979@gmail.com 2021-10-09 22:03:05 +08:00
parent 88cd992159
commit 83b99c99de
4 changed files with 16 additions and 4 deletions

View File

@ -1,5 +1,7 @@
Version 0.6.3
- fix: should use c++ syntax to check ".h" files
- fix: can't copy contents in a readonly editor
- fix: project's file not correctly syntaxed when open in editor
Version 0.6.2
- fix: The Enter key in the numpad doesn't work

View File

@ -2842,9 +2842,19 @@ void Editor::setInProject(bool newInProject)
return;
mInProject = newInProject;
if (mInProject) {
initParser();
} else {
mParser = pMainWindow->project()->cppParser();
if (isVisible()) {
if (mParser && mParser->parsing()) {
connect(mParser.get(),
&CppParser::onEndParsing,
this,
&SynEdit::invalidate);
} else {
invalidate();
}
}
} else {
initParser();
}
}

View File

@ -5047,7 +5047,7 @@ void SynEdit::ExecuteCommand(SynEditorCommand Command, QChar AChar, void *pData)
doCutToClipboard();
break;
case SynEditorCommand::ecCopy:
if (!mReadOnly && selAvail())
if (selAvail())
doCopyToClipboard();
break;
case SynEditorCommand::ecPaste:

View File

@ -3,7 +3,7 @@
#include <QStringList>
#define DEVCPP_VERSION "0.6.1"
#define DEVCPP_VERSION "0.6.3"
#ifdef Q_OS_WIN
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"