summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/install.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-05-11 18:53:24 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-05-11 18:53:24 +0000
commit76e6ad9069e05ba0325f12976a92a5853c31762e (patch)
treead39620c93fdd1d044a21a650f5a5dd6d1761ace /rbutil/rbutilqt/install.cpp
parent1aa6cde3eaa49c6607cc5827c0a7c8e6dd355a1a (diff)
rbutil: more improvements for the backup mechanism.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17465 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/install.cpp')
-rw-r--r--rbutil/rbutilqt/install.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/install.cpp b/rbutil/rbutilqt/install.cpp
index e9f1f61837..a505b85d68 100644
--- a/rbutil/rbutilqt/install.cpp
+++ b/rbutil/rbutilqt/install.cpp
@@ -32,6 +32,7 @@ Install::Install(RbSettings *sett,QWidget *parent) : QDialog(parent)
connect(ui.radioCurrent, SIGNAL(toggled(bool)), this, SLOT(setDetailsCurrent(bool)));
connect(ui.radioArchived, SIGNAL(toggled(bool)), this, SLOT(setDetailsArchived(bool)));
connect(ui.changeBackup,SIGNAL(pressed()),this,SLOT(changeBackupPath()));
+ connect(ui.backup,SIGNAL(stateChanged(int)),this,SLOT(backupCheckboxChanged(int)));
//! check if rockbox is already installed
QString version = installedVersion(settings->mountpoint());
@@ -39,12 +40,29 @@ Install::Install(RbSettings *sett,QWidget *parent) : QDialog(parent)
if(version != "")
{
ui.Backupgroup->show();
- ui.backupLocation->setText(settings->mountpoint() + ".backup/rockbox-backup-"+version+".zip");
+ ui.backupLocation->setText(settings->mountpoint() + "/.backup/rockbox-backup-"+version+".zip");
}
else
{
ui.Backupgroup->hide();
}
+ backupCheckboxChanged(Qt::Unchecked);
+}
+
+void Install::backupCheckboxChanged(int state)
+{
+ if(state == Qt::Checked)
+ {
+ ui.backupLabel->show();
+ ui.backupLocation->show();
+ ui.changeBackup->show();
+ }
+ else
+ {
+ ui.backupLabel->hide();
+ ui.backupLocation->hide();
+ ui.changeBackup->hide();
+ }
}