diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-12-11 01:43:58 +0200 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-01-07 02:15:43 +0200 |
| commit | 9440f969033b73e2e2a037c291bcb45619b1dfd1 (patch) | |
| tree | 086e8f5a66e0adaeeef68400f73ff78ae456b1d2 /indra/newview/llfloaterpreference.cpp | |
| parent | b9727dd84124756adacfbce73b5a916a2c0dd891 (diff) | |
Reapply "Add more functionality to LLFile and cleanup LLAPRFile""
# Conflicts:
# indra/llcrashlogger/llcrashlock.cpp
# indra/llrender/llshadermgr.cpp
# indra/test/CMakeLists.txt
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
| -rwxr-xr-x[-rw-r--r--] | indra/newview/llfloaterpreference.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 425e9e2269..4fa14a199d 100644..100755 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -1500,7 +1500,7 @@ bool LLFloaterPreference::moveTranscriptsAndLog() //Couldn't move the log and created a new directory so remove the new directory if(madeDirectory) { - LLFile::rmdir(chatLogPath); + LLFile::remove(chatLogPath); } return false; } @@ -1526,7 +1526,7 @@ bool LLFloaterPreference::moveTranscriptsAndLog() if(madeDirectory) { - LLFile::rmdir(chatLogPath); + LLFile::remove(chatLogPath); } return false; @@ -2031,17 +2031,15 @@ void LLFloaterPreference::changed() { if (LLConversationLog::instance().getIsLoggingEnabled()) { - getChild<LLButton>("clear_log")->setEnabled(LLConversationLog::instance().getConversations().size() > 0); + getChild<LLButton>("clear_log")->setEnabled(LLConversationLog::instance().getConversations().size() > 0); } else { // onClearLog clears list, then notifies changed() and only then clears file, // so check presence of conversations before checking file, file will cleared later. - llstat st; bool has_logs = LLConversationLog::instance().getConversations().size() > 0 - && LLFile::stat(LLConversationLog::instance().getFileName(), &st) == 0 - && S_ISREG(st.st_mode) - && st.st_size > 0; + && LLFile::isfile(LLConversationLog::instance().getFileName()) + && LLFile::size(LLConversationLog::instance().getFileName()) > 0; getChild<LLButton>("clear_log")->setEnabled(has_logs); } |
