소스 검색

!17 解决linux构建失败问题
Merge pull request !17 from coconi/fix_linux_build_fail

爬山虎 2 년 전
부모
커밋
b9b208385e
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/cceditor/ccnotepad.cpp
  2. 1 1
      src/main.cpp

+ 1 - 1
src/cceditor/ccnotepad.cpp

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

+ 1 - 1
src/main.cpp

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