fix build fail on linux

This commit is contained in:
coconil 2023-02-02 23:25:25 +08:00
parent 6f36d96cdd
commit fcfb3a75a6
2 changed files with 2 additions and 2 deletions

View File

@ -8770,7 +8770,7 @@ void CCNotePad::slot_formatXml()
void CCNotePad::slot_formatJson() void CCNotePad::slot_formatJson()
{ {
ScintillaEditView* _pEditView = getCurEditView(); ScintillaEditView* _pEditView = getCurEditView();
if (_pEditView == nullptr && _pEditView->isReadOnly()) if (_pEditView == nullptr || _pEditView->isReadOnly())
{ {
return; return;
} }

View File

@ -31,9 +31,9 @@
#include <qt_windows.h> #include <qt_windows.h>
const ULONG_PTR CUSTOM_TYPE = 10000; const ULONG_PTR CUSTOM_TYPE = 10000;
const ULONG_PTR OPEN_NOTEPAD_TYPE = 10001; const ULONG_PTR OPEN_NOTEPAD_TYPE = 10001;
bool s_isAdminAuth = false;
#endif #endif
bool s_isAdminAuth = false;
const QString c_strTitle = "Ndd"; const QString c_strTitle = "Ndd";