From f3572e52ac943297e0f6c72bf19054d85082155d Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 14 Aug 2023 08:42:25 +0400 Subject: [PATCH] Don't create a QDir instance for its static setCurrent method --- Telegram/SourceFiles/logs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/logs.cpp b/Telegram/SourceFiles/logs.cpp index b61a2d29b..d556d5ec2 100644 --- a/Telegram/SourceFiles/logs.cpp +++ b/Telegram/SourceFiles/logs.cpp @@ -413,7 +413,7 @@ void start() { // WinRT build requires the working dir to stay the same for plugin loading. #ifndef Q_OS_WINRT - QDir().setCurrent(cWorkingDir()); + QDir::setCurrent(cWorkingDir()); #endif // !Q_OS_WINRT QDir().mkpath(cWorkingDir() + u"tdata"_q);