27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
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 {
|