Allow direct editing of paths
This commit is contained in:
@@ -18,10 +18,6 @@ AppPreferencesDialog::AppPreferencesDialog(QWidget *parent) :
|
||||
ui->setupUi(this);
|
||||
updateLock=false;
|
||||
setWindowIcon(CompanionIcon("apppreferences.png"));
|
||||
ui->backupPathClear->setIcon(CompanionIcon("clear.png"));
|
||||
ui->pBackupPathClear->setIcon(CompanionIcon("clear.png"));
|
||||
ui->libraryPathClear->setIcon(CompanionIcon("clear.png"));
|
||||
ui->sdPathClear->setIcon(CompanionIcon("clear.png"));
|
||||
|
||||
initSettings();
|
||||
connect(ui->downloadVerCB, SIGNAL(currentIndexChanged(int)), this, SLOT(baseFirmwareChanged()));
|
||||
@@ -256,32 +252,6 @@ void AppPreferencesDialog::on_ProfilebackupPathButton_clicked()
|
||||
}
|
||||
}
|
||||
|
||||
void AppPreferencesDialog::on_sdPathClear_clicked()
|
||||
{
|
||||
g.profile[g.id()].sdPath("");
|
||||
ui->sdPath->clear();
|
||||
}
|
||||
|
||||
void AppPreferencesDialog::on_pBackupPathClear_clicked()
|
||||
{
|
||||
g.profile[g.id()].pBackupDir("");
|
||||
ui->profilebackupPath->clear();
|
||||
ui->pbackupEnable->setDisabled(true);
|
||||
}
|
||||
|
||||
void AppPreferencesDialog::on_backupPathClear_clicked()
|
||||
{
|
||||
g.backupDir("");
|
||||
ui->backupPath->clear();
|
||||
ui->backupEnable->setDisabled(true);
|
||||
}
|
||||
|
||||
void AppPreferencesDialog::on_libraryPathClear_clicked()
|
||||
{
|
||||
g.libDir("");
|
||||
ui->libraryPath->clear();
|
||||
}
|
||||
|
||||
void AppPreferencesDialog::on_ge_pathButton_clicked()
|
||||
{
|
||||
QString fileName = QFileDialog::getOpenFileName(this, tr("Select Google Earth executable"),ui->ge_lineedit->text());
|
||||
|
||||
Reference in New Issue
Block a user