1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00

Re #1567: introduced unlink() function that takes QString parameter

This commit is contained in:
Damjan Adamic 2014-08-03 18:03:13 +02:00
parent c0e612531d
commit 4103adf75d
7 changed files with 19 additions and 19 deletions

View file

@ -806,7 +806,7 @@ QStringList MainWindow::GetSambaArguments(const QString &tcl)
QString tclFilename = QDir::tempPath() + "/temp.tcl";
if (QFile::exists(tclFilename)) {
unlink(tclFilename.toAscii());
unlink(tclFilename);
}
QFile tclFile(tclFilename);
if (!tclFile.open(QIODevice::WriteOnly | QIODevice::Text)) {
@ -963,7 +963,7 @@ void MainWindow::readEeprom()
child->newFile();
child->loadFile(tempFile, false);
child->show();
unlink(tempFile.toAscii());
unlink(tempFile);
}
}
@ -1194,7 +1194,7 @@ void MainWindow::writeBackup()
}
fileName = restoreFile;
}
unlink(tempFlash.toAscii());
unlink(tempFlash);
}
else {
if (backupEnable) {