Browse Source

Fix compilation errors (closes #676856)

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
ea631f6675
  1. 2
      src/downloadthread.cpp
  2. 4
      src/mainwindow.cpp

2
src/downloadthread.cpp

@ -100,7 +100,7 @@ void downloadThread::processDlFinished(QNetworkReply* reply) {
} }
void downloadThread::loadCookies(const QString &host_name, QString url) { void downloadThread::loadCookies(const QString &host_name, QString url) {
const QList<QByteArray> raw_cookies = RssSettings::getHostNameCookies(host_name); const QList<QByteArray> raw_cookies = RssSettings().getHostNameCookies(host_name);
QNetworkCookieJar *cookie_jar = networkManager.cookieJar(); QNetworkCookieJar *cookie_jar = networkManager.cookieJar();
QList<QNetworkCookie> cookies; QList<QNetworkCookie> cookies;
qDebug("Loading cookies for host name: %s", qPrintable(host_name)); qDebug("Loading cookies for host name: %s", qPrintable(host_name));

4
src/mainwindow.cpp

@ -207,7 +207,7 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
// View settings // View settings
actionTop_tool_bar->setChecked(pref.isToolbarDisplayed()); actionTop_tool_bar->setChecked(pref.isToolbarDisplayed());
actionSpeed_in_title_bar->setChecked(pref.speedInTitleBar()); actionSpeed_in_title_bar->setChecked(pref.speedInTitleBar());
actionRSS_Reader->setChecked(RssSettings::isRSSEnabled()); actionRSS_Reader->setChecked(RssSettings().isRSSEnabled());
actionSearch_engine->setChecked(pref.isSearchEnabled()); actionSearch_engine->setChecked(pref.isSearchEnabled());
displaySearchTab(actionSearch_engine->isChecked()); displaySearchTab(actionSearch_engine->isChecked());
displayRSSTab(actionRSS_Reader->isChecked()); displayRSSTab(actionRSS_Reader->isChecked());
@ -1197,7 +1197,7 @@ void MainWindow::on_actionSpeed_in_title_bar_triggered() {
} }
void MainWindow::on_actionRSS_Reader_triggered() { void MainWindow::on_actionRSS_Reader_triggered() {
RssSettings::setRSSEnabled(actionRSS_Reader->isChecked()); RssSettings().setRSSEnabled(actionRSS_Reader->isChecked());
displayRSSTab(actionRSS_Reader->isChecked()); displayRSSTab(actionRSS_Reader->isChecked());
} }

Loading…
Cancel
Save