summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-12-20 00:53:04 (UTC)
committer mickeyl <mickeyl>2003-12-20 00:53:04 (UTC)
commitf495453bc1c2157f3c0a9a7957d15d3b5f434a72 (patch) (side-by-side diff)
treeb3b3618608b1cb04642b8643cc905bc89d79cec6
parent11c6b3b8ba56b28b160965387b4ffeffe2a2f143 (diff)
downloadopie-f495453bc1c2157f3c0a9a7957d15d3b5f434a72.zip
opie-f495453bc1c2157f3c0a9a7957d15d3b5f434a72.tar.gz
opie-f495453bc1c2157f3c0a9a7957d15d3b5f434a72.tar.bz2
fix bug in line 73 - it helps to actually call the functions ;)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index 7d0daf7..cfba907 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -49,49 +49,49 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags f
connect(restoreButton, SIGNAL(clicked()),
this, SLOT(restore()));
connect(backupList, SIGNAL(clicked( QListViewItem * )),
this, SLOT(selectItem(QListViewItem*)));
connect(restoreSource, SIGNAL(activated( int )),
this, SLOT(sourceDirChanged(int)));
connect(updateList, SIGNAL(clicked()),
this, SLOT( fileListUpdate()));
//add directorys for backing up
applicationSettings = new QListViewItem(backupList, "Application Settings", "", "Settings/");
selectItem(applicationSettings);
applicationSettings = new QListViewItem(backupList, "Application Data", "", "Applications/");
selectItem(applicationSettings);
documents= new QListViewItem(backupList, "Documents", "", "Documents/");
selectItem(documents);
scanForApplicationSettings();
backupLocations.insert( "Documents", QDir::homeDirPath() + "/Documents" );
if (StorageInfo::hasCf())
{
backupLocations.insert("CF", "/mnt/cf");
}
- if (StorageInfo::hasSd || StorageInfo::hasMmc)
+ if (StorageInfo::hasSd() || StorageInfo::hasMmc())
{
backupLocations.insert("SD", "/mnt/card");
}
QMap<QString, QString>::Iterator it;
for( it = backupLocations.begin(); it != backupLocations.end(); ++it )
{
storeToLocation->insertItem(it.key());
restoreSource->insertItem(it.key());
}
// Read the list of items to ignore.
Config config("BackupAndRestore");
QList<QString> dontBackupList;
dontBackupList.setAutoDelete(true);
config.setGroup("DontBackup");
int total = config.readNumEntry("Total", 0);
for(int i = 0; i < total; i++)
{
dontBackupList.append(new QString(config.readEntry(QString("%1").arg(i), "")));
}
QList<QListViewItem> list;