mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 01:05:10 +03:00
Re #1567: cleanup
This commit is contained in:
parent
741ef45f3e
commit
8bd2c120d6
4 changed files with 3 additions and 7 deletions
|
@ -156,12 +156,12 @@ void CompareDialog::dropEvent(QDropEvent *event)
|
|||
|
||||
void CompareDialog::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
qunlink(curvefile5);
|
||||
qunlink(curvefile9);
|
||||
}
|
||||
|
||||
CompareDialog::~CompareDialog()
|
||||
{
|
||||
qunlink(curvefile5);
|
||||
qunlink(curvefile9);
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -972,7 +972,6 @@ QString index2version(int index)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
int qunlink(const QString & fileName)
|
||||
{
|
||||
qDebug() << "unlinking "<< fileName;
|
||||
|
|
|
@ -139,7 +139,6 @@ class QTimeS : public QTime
|
|||
int seconds() const { return hour()*3600 + minute()*60 + second(); };
|
||||
};
|
||||
|
||||
|
||||
int qunlink(const QString & fileName);
|
||||
|
||||
QString generateProcessUniqueTempFileName(const QString & fileName);
|
||||
|
|
|
@ -60,13 +60,11 @@ PrintDialog::PrintDialog(QWidget *parent, FirmwareInterface * firmware, GeneralS
|
|||
|
||||
void PrintDialog::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
// if (printfilename.isEmpty()) {
|
||||
// }
|
||||
}
|
||||
|
||||
PrintDialog::~PrintDialog()
|
||||
{
|
||||
qDebug() << "PrintDialog::~PrintDialog";
|
||||
// notice PrintDialog::closeEvent() is not called if user clicks on Close button
|
||||
qunlink(curvefile5);
|
||||
qunlink(curvefile9);
|
||||
delete ui;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue