Branch: master

7b892e95 2015-03-21 16:39:53 François Andriot
RPM packaging: update bibletime
M redhat/applications/bibletime/bibletime-14.0.0.patch
diff --git a/redhat/applications/bibletime/bibletime-14.0.0.patch b/redhat/applications/bibletime/bibletime-14.0.0.patch
index d8cf2a3..eaae32d 100644
--- a/redhat/applications/bibletime/bibletime-14.0.0.patch
+++ b/redhat/applications/bibletime/bibletime-14.0.0.patch
@@ -7,7 +7,7 @@
  /** 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"));
++	return (strcmp(getGlobalOption( optionName(type).latin1() ), "On") == 0);
  }
  
  /** Sets the given options enabled or disabled depending on the second parameter. */
@@ -20,7 +20,7 @@
  
  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
++	return (strcmp(type, "BibleTime/DND") == 0); //return only true if the type is BibleTime/DND
  };
  
  const char* CDragDropMgr::BTDrag::format( int i ) const {