forked from pool/krusader
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
--- krusader/Konfigurator/kgcolors.cpp 2007/07/22 10:36:24 1.1
|
|
+++ krusader/Konfigurator/kgcolors.cpp 2007/07/22 10:38:04
|
|
@@ -613,8 +613,10 @@
|
|
void KgColors::serializeItem(class QDataStream & stream, const char * name)
|
|
{
|
|
stream << QString(name);
|
|
- if( name == "KDE Default" || name == "Enable Alternate Background" ||
|
|
- name == "Show Current Item Always" || name == "Dim Inactive Colors" )
|
|
+ if( (strcmp( name, "KDE Default") == 0)
|
|
+ || (strcmp( name, "Enable Alternate Background") == 0)
|
|
+ || (strcmp( name, "Show Current Item Always") == 0)
|
|
+ || (strcmp( name, "Dim Inactive Colors") == 0) )
|
|
{
|
|
bool bValue = generals->find( name )->isChecked();
|
|
stream << QString( bValue ? "true" : "false" );
|
|
--- krusader/Konfigurator/kgcolors.cpp 2007/07/22 10:47:35 1.5
|
|
+++ krusader/Konfigurator/kgcolors.cpp 2007/07/22 10:48:45
|
|
@@ -621,7 +621,7 @@
|
|
bool bValue = generals->find( name )->isChecked();
|
|
stream << QString( bValue ? "true" : "false" );
|
|
}
|
|
- else if( name == "Dim Factor" )
|
|
+ else if( strcmp( name, "Dim Factor") == 0 )
|
|
stream << QString::number(dimFactor->value());
|
|
else
|
|
{
|