Allow direct editing of paths

This commit is contained in:
Romolo Manfredini
2015-05-02 12:58:47 +02:00
parent 3a7e4c5005
commit c2db7f029c
3 changed files with 71 additions and 185 deletions
-30
View File
@@ -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());