mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 17:55:19 +03:00
Fixes missing or invalid SD path (#6441)
This commit is contained in:
parent
31ed6cd9e6
commit
be035ed612
1 changed files with 12 additions and 2 deletions
|
@ -27,6 +27,9 @@
|
||||||
#include "modelprinter.h"
|
#include "modelprinter.h"
|
||||||
#include "multiprotocols.h"
|
#include "multiprotocols.h"
|
||||||
#include "checklistdialog.h"
|
#include "checklistdialog.h"
|
||||||
|
#include "helpers.h"
|
||||||
|
|
||||||
|
#include <QDir>
|
||||||
|
|
||||||
TimerPanel::TimerPanel(QWidget *parent, ModelData & model, TimerData & timer, GeneralSettings & generalSettings, Firmware * firmware, QWidget * prevFocus, RawSwitchFilterItemModel * switchModel):
|
TimerPanel::TimerPanel(QWidget *parent, ModelData & model, TimerData & timer, GeneralSettings & generalSettings, Firmware * firmware, QWidget * prevFocus, RawSwitchFilterItemModel * switchModel):
|
||||||
ModelPanel(parent, model, generalSettings, firmware),
|
ModelPanel(parent, model, generalSettings, firmware),
|
||||||
|
@ -1355,6 +1358,13 @@ void SetupPanel::onBeepCenterToggled(bool checked)
|
||||||
|
|
||||||
void SetupPanel::on_editText_clicked()
|
void SetupPanel::on_editText_clicked()
|
||||||
{
|
{
|
||||||
ChecklistDialog *g = new ChecklistDialog(this, model);
|
const QString path = Helpers::getChecklistsPath();
|
||||||
g->exec();
|
QDir d(path);
|
||||||
|
if (!d.exists()) {
|
||||||
|
QMessageBox::critical(this, tr("Profile Settings"), tr("SD structure path not specified or invalid"));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ChecklistDialog *g = new ChecklistDialog(this, model);
|
||||||
|
g->exec();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue