summaryrefslogtreecommitdiff
path: root/library/qpeapplication.cpp
Side-by-side diff
Diffstat (limited to 'library/qpeapplication.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index a54fb20..c8e6e74 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -900,5 +900,5 @@ void QPEApplication::setDefaultRotation( int r )
// exported to libpreload.so
-bool opie_block_style = false;
+int opie_block_style = 0;
/*!
@@ -911,5 +911,5 @@ void QPEApplication::applyStyle()
// don't block ourselves ...
- opie_block_style = false;
+ opie_block_style = 0;
@@ -976,4 +976,6 @@ void QPEApplication::applyStyle()
dec = "";
+ //qDebug ( "Setting Deco: %s -- old %s (%d)", dec.latin1(), d-> decorationName.latin1(), nostyle);
+
if ( dec != d->decorationName ) {
qwsSetDecoration( new QPEDecoration( dec ) );
@@ -994,5 +996,6 @@ void QPEApplication::applyStyle()
// revert to global blocking policy ...
- opie_block_style = config. readBoolEntry ( "ForceStyle", false );
+ opie_block_style = config. readBoolEntry ( "ForceStyle", false ) ? 0xff : 0x00;
+ opie_block_style -= nostyle;
}