diff options
Diffstat (limited to 'launcher/FileSystem.cpp')
| -rw-r--r-- | launcher/FileSystem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp index 6de20de6ff..62e6c1e27f 100644 --- a/launcher/FileSystem.cpp +++ b/launcher/FileSystem.cpp @@ -407,7 +407,8 @@ bool createShortCut(QString location, QString dest, QStringList args, QString na location = PathCombine(location, name + ".desktop"); QFile f(location); - f.open(QIODevice::WriteOnly | QIODevice::Text); + if (!f.open(QIODevice::WriteOnly | QIODevice::Text)) + return false; QTextStream stream(&f); QString argstring; |
