From: Jan Rękorajski Date: Sun, 14 Jul 2013 14:23:23 +0000 (+0200) Subject: - fix ambiguity of a c++ method call X-Git-Tag: auto/th/qbittorrent-3.0.10-1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=e40238de1b423062aa694b57b2bf12f6919404f6;p=packages%2Fqbittorrent.git - fix ambiguity of a c++ method call - rel 1 --- diff --git a/cxx.patch b/cxx.patch new file mode 100644 index 0000000..204b80a --- /dev/null +++ b/cxx.patch @@ -0,0 +1,11 @@ +--- qbittorrent-3.0.10/src/main.cpp.orig 2013-07-14 16:17:31.884993352 +0200 ++++ qbittorrent-3.0.10/src/main.cpp 2013-07-14 16:17:49.891818931 +0200 +@@ -207,7 +207,7 @@ + qDebug("Message: %s", qPrintable(message)); + app.sendMessage(message); + } else { // Raise main window +- app.sendMessage("qbt://show"); ++ app.sendMessage(QString("qbt://show")); + } + return 0; + } diff --git a/qbittorrent.spec b/qbittorrent.spec index 8b4d56d..ed1e854 100644 --- a/qbittorrent.spec +++ b/qbittorrent.spec @@ -8,12 +8,13 @@ Summary(hu.UTF-8): qbittorrent - Qt4-alapú torrent kliens Summary(pl.UTF-8): qbittorrent - graficzny klient torrenta oparty na Qt4 Name: qbittorrent Version: 3.0.10 -Release: 0.1 +Release: 1 License: GPL v2+ Group: X11/Applications Source0: http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.gz # Source0-md5: f13c9416524fce8297b41caeadb04f1e Patch0: lang-hu-2.3.0.patch +Patch1: cxx.patch URL: http://qbittorrent.sourceforge.net/ BuildRequires: GeoIP-devel BuildRequires: QtCore-devel >= %{qtver} @@ -48,6 +49,7 @@ qTorrent - graficzny klient torrenta oparty na Qt4. %prep %setup -q %patch0 -p1 +%patch1 -p1 %if %{with qsa} %{__rm} -r src/qtsingleapp