diff --git a/src/GUI.cpp b/src/GUI.cpp index c0d507f82..f4b2ce67c 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -68,6 +68,7 @@ #include "hidabletabwidget.h" #include "qinisettings.h" #include "torrentimportdlg.h" +#include "rsssettings.h" #ifdef Q_WS_MAC #include "qmacapplication.h" void qt_mac_set_dock_menu(QMenu *menu); @@ -201,7 +202,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), for // View settings actionTop_tool_bar->setChecked(Preferences::isToolbarDisplayed()); actionSpeed_in_title_bar->setChecked(Preferences::speedInTitleBar()); - actionRSS_Reader->setChecked(Preferences::isRSSEnabled()); + actionRSS_Reader->setChecked(RssSettings::isRSSEnabled()); actionSearch_engine->setChecked(Preferences::isSearchEnabled()); displaySearchTab(actionSearch_engine->isChecked()); displayRSSTab(actionRSS_Reader->isChecked()); @@ -1190,7 +1191,7 @@ void GUI::on_actionSpeed_in_title_bar_triggered() { } void GUI::on_actionRSS_Reader_triggered() { - Preferences::setRSSEnabled(actionRSS_Reader->isChecked()); + RssSettings::setRSSEnabled(actionRSS_Reader->isChecked()); displayRSSTab(actionRSS_Reader->isChecked()); } @@ -1245,3 +1246,8 @@ void GUI::handleUpdateInstalled(QString error_msg) } #endif + +void GUI::on_actionDonate_money_triggered() +{ + QDesktopServices::openUrl(QUrl("https://sourceforge.net/donate/index.php?group_id=163414")); +} diff --git a/src/GUI.h b/src/GUI.h index ac7507cd2..b653f1dfd 100644 --- a/src/GUI.h +++ b/src/GUI.h @@ -189,6 +189,7 @@ private slots: void on_actionShutdown_when_downloads_complete_triggered(); void on_actionShutdown_qBittorrent_when_downloads_complete_triggered(); void on_action_Import_Torrent_triggered(); + void on_actionDonate_money_triggered(); }; #endif diff --git a/src/Icons/oxygen/emblem-favorite.png b/src/Icons/oxygen/emblem-favorite.png new file mode 100644 index 000000000..e9c6e7d41 Binary files /dev/null and b/src/Icons/oxygen/emblem-favorite.png differ diff --git a/src/ui/mainwindow.ui b/src/ui/mainwindow.ui index 673a11273..f280a2f7b 100644 --- a/src/ui/mainwindow.ui +++ b/src/ui/mainwindow.ui @@ -29,7 +29,7 @@ 0 0 914 - 21 + 25 @@ -54,6 +54,7 @@ + @@ -373,6 +374,18 @@ Import torrent... + + + + :/Icons/oxygen/emblem-favorite.png:/Icons/oxygen/emblem-favorite.png + + + Donate money + + + If you like qBittorrent, please donate! + +