mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T401, crash info can be saved as file
This commit is contained in:
committed by
Mat Sutcliffe
parent
10fff29f97
commit
df3ac2b02d
@@ -102,9 +102,9 @@ namespace BlackMisc
|
||||
bool CFileUtils::writeStringToFileInBackground(const QString &content, const QString &fileNameAndPath)
|
||||
{
|
||||
if (fileNameAndPath.isEmpty()) { return false; }
|
||||
CWorker *worker = BlackMisc::CWorker::fromTask(QCoreApplication::instance(), "writeStringToFileInBackground", [content, fileNameAndPath]()
|
||||
CWorker *worker = CWorker::fromTask(QCoreApplication::instance(), "writeStringToFileInBackground", [content, fileNameAndPath]()
|
||||
{
|
||||
bool s = CFileUtils::writeStringToFile(content, fileNameAndPath);
|
||||
const bool s = CFileUtils::writeStringToFile(content, fileNameAndPath);
|
||||
Q_UNUSED(s);
|
||||
});
|
||||
return worker ? true : false;
|
||||
|
||||
Reference in New Issue
Block a user