[qbittorrent/f20] remove donate from help tab
leigh123linux
leigh123linux at fedoraproject.org
Mon Sep 8 18:09:26 UTC 2014
commit 1c1dad93fc19d21f63d9d58d731e0a194382ad42
Author: leigh123linux <leigh123linux at googlemail.com>
Date: Mon Sep 8 19:09:14 2014 +0100
remove donate from help tab
qbittorrent.spec | 7 +++++-
remove-donate.patch | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+), 1 deletions(-)
---
diff --git a/qbittorrent.spec b/qbittorrent.spec
index dad778a..fa5661d 100644
--- a/qbittorrent.spec
+++ b/qbittorrent.spec
@@ -3,7 +3,7 @@
Name: qbittorrent
Summary: A Bittorrent Client
Version: 3.1.9
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 1
License: GPLv2+
URL: http://sourceforge.net/projects/qbittorrent
@@ -12,6 +12,7 @@ Source1: qbittorrent-nox.README
Source2: qbittorrent-nox
Patch0: build_flags.patch
+Patch1: remove-donate.patch
BuildRequires: qt4-devel
BuildRequires: desktop-file-utils
@@ -41,6 +42,7 @@ It aims to be as fast as possible and to provide multi-OS, unicode support.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
rm -rf src/qtsingleapp
cp -p %{SOURCE1} .
sed -i -e 's at Exec=qbittorrent %U at Exec=env TMPDIR=/var/tmp qbittorrent %U at g' src/Icons/qBittorrent.desktop
@@ -112,6 +114,9 @@ fi
%{_mandir}/man1/qbittorrent-nox.1*
%changelog
+* Mon Sep 08 2014 Leigh Scott <leigh123linux at googlemail.com> - 1:3.1.9-3
+- remove donate from help tab
+
* Sun Jun 22 2014 Leigh Scott <leigh123linux at googlemail.com> - 1:3.1.9-2
- fix bz 1072046
diff --git a/remove-donate.patch b/remove-donate.patch
new file mode 100644
index 0000000..d905c75
--- /dev/null
+++ b/remove-donate.patch
@@ -0,0 +1,57 @@
+--- a/src/mainwindow.h 2014-03-01 11:41:35.000000000 +0000
++++ b/src/mainwindow.h 2014-09-08 18:49:37.033994067 +0100
+@@ -207,7 +207,6 @@ private slots:
+ void on_actionSpeed_in_title_bar_triggered();
+ void on_actionTop_tool_bar_triggered();
+ void on_action_Import_Torrent_triggered();
+- void on_actionDonate_money_triggered();
+ void on_actionExecution_Logs_triggered(bool checked);
+ void on_actionAutoExit_qBittorrent_toggled(bool );
+ void on_actionAutoSuspend_system_toggled(bool );
+--- a/src/mainwindow.cpp 2014-03-01 11:41:35.000000000 +0000
++++ b/src/mainwindow.cpp 2014-09-08 18:59:01.255526985 +0100
+@@ -128,7 +128,6 @@ MainWindow::MainWindow(QWidget *parent,
+ actionDecreasePriority->setIcon(IconProvider::instance()->getIcon("go-down"));
+ actionDelete->setIcon(IconProvider::instance()->getIcon("list-remove"));
+ actionDocumentation->setIcon(IconProvider::instance()->getIcon("help-contents"));
+- actionDonate_money->setIcon(IconProvider::instance()->getIcon("wallet-open"));
+ actionExit->setIcon(IconProvider::instance()->getIcon("application-exit"));
+ actionIncreasePriority->setIcon(IconProvider::instance()->getIcon("go-up"));
+ actionLock_qBittorrent->setIcon(IconProvider::instance()->getIcon("object-locked"));
+@@ -1380,11 +1379,6 @@ void MainWindow::handleUpdateCheckFinish
+ }
+ #endif
+
+-void MainWindow::on_actionDonate_money_triggered()
+-{
+- QDesktopServices::openUrl(QUrl("http://sourceforge.net/donate/index.php?group_id=163414"));
+-}
+-
+ void MainWindow::showConnectionSettings()
+ {
+ on_actionOptions_triggered();
+--- a/src/mainwindow.ui 2014-03-01 11:41:35.000000000 +0000
++++ b/src/mainwindow.ui 2014-09-08 18:51:08.696694259 +0100
+@@ -52,7 +52,6 @@
+ <addaction name="actionBugReport"/>
+ <addaction name="actionWebsite"/>
+ <addaction name="actionDocumentation"/>
+- <addaction name="actionDonate_money"/>
+ <addaction name="actionCheck_for_updates"/>
+ <addaction name="actionAbout"/>
+ </widget>
+@@ -307,14 +306,6 @@
+ <string>Import torrent...</string>
+ </property>
+ </action>
+- <action name="actionDonate_money">
+- <property name="text">
+- <string>Donate money</string>
+- </property>
+- <property name="toolTip">
+- <string>If you like qBittorrent, please donate!</string>
+- </property>
+- </action>
+ <action name="actionStart_All">
+ <property name="text">
+ <string>R&esume All</string>
More information about the scm-commits
mailing list