Read/write backup fixes: (#4327)
* Read/write backup fixes: * radio not found was show behind all windows (missing parent) * bad behavior on write when radio not found * Disable model backup read/write for Horus (needs implementation)
This commit is contained in:
committed by
Bertrand Songis
parent
8e73d25f1c
commit
d5e3fabf03
@@ -777,6 +777,11 @@ bool MainWindow::readEepromFromRadio(const QString & filename)
|
||||
|
||||
void MainWindow::writeBackup()
|
||||
{
|
||||
if (IS_HORUS(getCurrentBoard())) {
|
||||
QMessageBox::information(this, "Companion", tr("This function is not yet implemented"));
|
||||
return;
|
||||
// TODO implementation
|
||||
}
|
||||
FlashEEpromDialog *cd = new FlashEEpromDialog(this);
|
||||
cd->exec();
|
||||
}
|
||||
@@ -789,6 +794,11 @@ void MainWindow::writeFlash(QString fileToFlash)
|
||||
|
||||
void MainWindow::readBackup()
|
||||
{
|
||||
if (IS_HORUS(getCurrentBoard())) {
|
||||
QMessageBox::information(this, "Companion", tr("This function is not yet implemented"));
|
||||
return;
|
||||
// TODO implementation
|
||||
}
|
||||
QString fileName = QFileDialog::getSaveFileName(this, tr("Save Radio Backup to File"), g.eepromDir(), tr(EXTERNAL_EEPROM_FILES_FILTER));
|
||||
if (!fileName.isEmpty()) {
|
||||
if (!readEepromFromRadio(fileName))
|
||||
|
||||
Reference in New Issue
Block a user