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:
parent
c0e612531d
commit
4103adf75d
7 changed files with 19 additions and 19 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue