summaryrefslogtreecommitdiffstats
path: root/redhat/applications/bibletime/bibletime-14.0.0.patch
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2015-03-21 17:18:52 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2015-03-21 17:18:52 +0100
commit056a3e9bfa2213b295ab52a4881625504203eeef (patch)
tree0fb76f7991f249f90ad0759398b3318a0b058ee2 /redhat/applications/bibletime/bibletime-14.0.0.patch
parent42678713f1aa241ec6fc7e9ea059a746eee871a8 (diff)
downloadtde-packaging-056a3e9bfa2213b295ab52a4881625504203eeef.tar.gz
tde-packaging-056a3e9bfa2213b295ab52a4881625504203eeef.zip
RPM packaging: fix FTBFS on bibletime
Diffstat (limited to 'redhat/applications/bibletime/bibletime-14.0.0.patch')
-rw-r--r--redhat/applications/bibletime/bibletime-14.0.0.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/redhat/applications/bibletime/bibletime-14.0.0.patch b/redhat/applications/bibletime/bibletime-14.0.0.patch
new file mode 100644
index 000000000..d8cf2a399
--- /dev/null
+++ b/redhat/applications/bibletime/bibletime-14.0.0.patch
@@ -0,0 +1,26 @@
+diff --git a/bibletime/backend/cswordbackend.cpp b/bibletime/backend/cswordbackend.cpp
+index 1c218b3..dda6275 100644
+--- a/bibletime/backend/cswordbackend.cpp
++++ b/bibletime/backend/cswordbackend.cpp
+@@ -251,7 +251,7 @@ const bool CSwordBackend::shutdownModules() {
+
+ /** Returns true if the given option is enabled. */
+ const bool CSwordBackend::isOptionEnabled( const CSwordModuleInfo::FilterTypes type) {
+- return (getGlobalOption( optionName(type).latin1() ) == "On");
++ return (strcmp(getGlobalOption( optionName(type).latin1() ), "On"));
+ }
+
+ /** Sets the given options enabled or disabled depending on the second parameter. */
+diff --git a/bibletime/frontend/cdragdropmgr.cpp b/bibletime/frontend/cdragdropmgr.cpp
+index 52d012f..4f8c4fe 100644
+--- a/bibletime/frontend/cdragdropmgr.cpp
++++ b/bibletime/frontend/cdragdropmgr.cpp
+@@ -36,7 +36,7 @@ bool CDragDropMgr::BTDrag::canDecode( const TQMimeSource * mime ) {
+ };
+
+ bool CDragDropMgr::BTDrag::provides( const char* type ) const {
+- return (type == "BibleTime/DND"); //return only true if the type is BibleTime/DND
++ return (strcmp(type, "BibleTime/DND")); //return only true if the type is BibleTime/DND
+ };
+
+ const char* CDragDropMgr::BTDrag::format( int i ) const {