Now qbt remembers the last used folder. Fixes #799697.

Conflicts:

	src/preferences/options.ui
This commit is contained in:
sledgehammer_999
2011-09-06 22:13:02 +03:00
parent 4ffe100287
commit a82ccd8e95
3 changed files with 38 additions and 2 deletions

View File

@@ -229,6 +229,22 @@ public:
setValue("Preferences/Downloads/AppendLabel", b);
}
bool rememberLastLocation() const {
return value(QString::fromUtf8("Preferences/Downloads/RememberLastLocation"), false).toBool();
}
void setRememberLastLocation(bool b) {
setValue("Preferences/Downloads/RememberLastLocation", b);
}
QString lastLocationPath() const {
return value(QString::fromUtf8("Preferences/Downloads/LastLocationPath"), QString()).toString();
}
void setLastLocationPath(const QString &path) {
setValue(QString::fromUtf8("Preferences/Downloads/LastLocationPath"), path);
}
bool preAllocateAllFiles() const {
return value(QString::fromUtf8("Preferences/Downloads/PreAllocation"), false).toBool();
}