-rw-r--r-- | library/lnkproperties.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp index 0b30a9a..745ee2c 100644 --- a/library/lnkproperties.cpp +++ b/library/lnkproperties.cpp | |||
@@ -113,13 +113,13 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) | |||
113 | d->docname->setReadOnly( TRUE ); | 113 | d->docname->setReadOnly( TRUE ); |
114 | 114 | ||
115 | if ( l->property("CanFastload") == "0" ) | 115 | if ( l->property("CanFastload") == "0" ) |
116 | d->preload->hide(); | 116 | d->preload->hide(); |
117 | if ( !l->property("Rotation"). isEmpty ()) { | 117 | if ( !l->property("Rotation"). isEmpty ()) { |
118 | d->rotate->setChecked ( true ); | 118 | d->rotate->setChecked ( true ); |
119 | d->rotateButtons->setButton(((QPEApplication::defaultRotation()+l->rotation().toInt())%360)/90); | 119 | d->rotateButtons->setButton((l->rotation().toInt()%360)/90); |
120 | } | 120 | } |
121 | else { | 121 | else { |
122 | d->rotateButtons->setEnabled(false); | 122 | d->rotateButtons->setEnabled(false); |
123 | } | 123 | } |
124 | 124 | ||
125 | Config cfg("Launcher"); | 125 | Config cfg("Launcher"); |
@@ -286,22 +286,22 @@ void LnkProperties::done(int ok) | |||
286 | changed = TRUE; | 286 | changed = TRUE; |
287 | } | 287 | } |
288 | } | 288 | } |
289 | if ( !d->rotate->isHidden()) { | 289 | if ( !d->rotate->isHidden()) { |
290 | QString newrot; | 290 | QString newrot; |
291 | 291 | ||
292 | if (d->rotate->isChecked()) { | 292 | if ( d->rotate->isChecked() ) { |
293 | int rot=0; | 293 | int rot=0; |
294 | for(; rot<4; rot++) { | 294 | for(; rot<4; rot++) { |
295 | if (d->rotateButtons->find(rot)->isOn()) | 295 | if (d->rotateButtons->find(rot)->isOn()) |
296 | break; | 296 | break; |
297 | } | 297 | } |
298 | newrot = QString::number((QPEApplication::defaultRotation()+rot*90)%360); | 298 | newrot = QString::number((rot*90)%360); |
299 | } | 299 | } |
300 | if (newrot !=lnk->rotation()) { | 300 | if ( newrot != lnk->rotation() ) { |
301 | lnk->setRotation(newrot); | 301 | lnk-> setRotation(newrot); |
302 | changed = TRUE; | 302 | changed = TRUE; |
303 | } | 303 | } |
304 | } | 304 | } |
305 | if ( d->preload->isHidden() && d->locationCombo->currentItem() != currentLocation ) { | 305 | if ( d->preload->isHidden() && d->locationCombo->currentItem() != currentLocation ) { |
306 | moveLnk(); | 306 | moveLnk(); |
307 | } else if ( changed ) { | 307 | } else if ( changed ) { |