- Added some RSS preferences

This commit is contained in:
Christophe Dumez 2007-09-09 15:46:23 +00:00
parent db1bd53f44
commit c4d143c2c0
63 changed files with 1077 additions and 717 deletions

View file

@ -56,7 +56,7 @@ namespace fs = boost::filesystem;
*****************************************************/
// Constructor
GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), displaySpeedInTitle(false), force_exit(false) {
GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), displaySpeedInTitle(false), force_exit(false), refreshInterval(1500) {
setupUi(this);
setWindowTitle(tr("qBittorrent %1", "e.g: qBittorrent v0.x").arg(QString::fromUtf8(VERSION)));
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
@ -790,6 +790,12 @@ void GUI::configureSession(bool deleteOptions) {
qDebug("Configuring session");
// General
displaySpeedInTitle = options->speedInTitleBar();
unsigned int new_refreshInterval = options->getRefreshInterval();
if(refreshInterval != new_refreshInterval) {
refreshInterval = new_refreshInterval;
refresher->stop();
refresher->start(refreshInterval);
}
// Downloads
// * Save path
BTSession->setDefaultSavePath(options->getSavePath());