解决linux编译错误

This commit is contained in:
爬山虎 2023-02-03 10:22:18 +08:00
parent b0889ae1eb
commit 7231a7365d
1 changed files with 6 additions and 2 deletions

View File

@ -352,16 +352,20 @@ drop_old:
if (arguments.size() == 2) if (arguments.size() == 2)
{ {
#ifdef Q_OS_WIN
if (!s_isAdminAuth) if (!s_isAdminAuth)
{ {
pMainNotepad->openFile(arguments[1]); pMainNotepad->openFile(arguments[1]);
} }
else else
{ {
//如果是管理员,还不能直接打开文件,需要恢复之前文件的修改内容 //如果是管理员,还不能直接打开文件,需要恢复之前文件的修改内容
//恢复不了,再直接打开 //恢复不了,再直接打开
pMainNotepad->tryRestoreFile(arguments[1]); pMainNotepad->tryRestoreFile(arguments[1]);
} }
#else
pMainNotepad->openFile(arguments[1]);
#endif
} }
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
pMainNotepad->checkAppFont(); pMainNotepad->checkAppFont();