diff options
author | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2015-04-13 18:59:58 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2015-04-24 16:30:50 +0300 |
commit | a5b28fe4750cf81a2a2224768e81f9ee051a44d5 (patch) | |
tree | 19d99790636bf076a1e7225bd409078c2bb3f206 | |
parent | 615a3cbe7ac97c73556fd5194c06e901eccd16de (diff) |
Fix regression introduced by b47a30f
Change-Id: I4fd63ca0c47adfbb772ba0b8915c6bacef8c513c
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-rw-r--r-- | src/wifi/qwifielinux.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/wifi/qwifielinux.cpp b/src/wifi/qwifielinux.cpp index 7584335..e7dabb3 100644 --- a/src/wifi/qwifielinux.cpp +++ b/src/wifi/qwifielinux.cpp @@ -117,14 +117,15 @@ int q_wifi_stop_supplicant() return -1; } - QByteArray path = controlInterfacePath(); - if (path.isEmpty()) - return -1; - - QFile::remove(QLatin1String(path + "/" + ifc)); QFile::remove(pidFile); } + QByteArray path = controlInterfacePath(); + if (path.isEmpty()) + return -1; + + QFile::remove(QLatin1String(path + "/" + ifc)); + return 0; } |