mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 04:16:57 +03:00
Check return value of 'virtual bool QFile::open(QIODeviceBase::OpenMode)'
Signed-off-by: Dylan Schooner <dschooner05@gmail.com>
This commit is contained in:
parent
2982e6e7c9
commit
8d42bdaf6b
9 changed files with 63 additions and 28 deletions
|
|
@ -1968,7 +1968,9 @@ bool Application::handleDataMigration(const QString& currentData,
|
|||
|
||||
auto setDoNotMigrate = [&nomigratePath] {
|
||||
QFile file(nomigratePath);
|
||||
file.open(QIODevice::WriteOnly);
|
||||
if (!file.open(QIODevice::WriteOnly)) {
|
||||
qWarning() << "setDoNotMigrate failed; Failed to open file '" << file.fileName() << "' for writing!";
|
||||
}
|
||||
};
|
||||
|
||||
// create no-migrate file if user doesn't want to migrate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue