add missing patch

OBS-URL: https://build.opensuse.org/package/show/Education/bibletime?expand=0&rev=7
This commit is contained in:
Lars Vogdt
2008-12-15 15:08:17 +00:00
committed by Git OBS Bridge
parent 13e6202a63
commit ad5d64e111

View File

@@ -0,0 +1,26 @@
Index: bibletime/backend/cswordbackend.cpp
===================================================================
--- bibletime/backend/cswordbackend.cpp.orig
+++ bibletime/backend/cswordbackend.cpp
@@ -251,7 +251,7 @@ const bool CSwordBackend::shutdownModule
/** 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") == 0);
}
/** Sets the given options enabled or disabled depending on the second parameter. */
Index: bibletime/frontend/cdragdropmgr.cpp
===================================================================
--- bibletime/frontend/cdragdropmgr.cpp.orig
+++ bibletime/frontend/cdragdropmgr.cpp
@@ -36,7 +36,7 @@ bool CDragDropMgr::BTDrag::canDecode( co
};
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") == 0); //return only true if the type is BibleTime/DND
};
const char* CDragDropMgr::BTDrag::format( int i ) const {