summaryrefslogtreecommitdiff
path: root/library/lnkproperties.cpp
authormickeyl <mickeyl>2004-03-08 17:00:43 (UTC)
committer mickeyl <mickeyl>2004-03-08 17:00:43 (UTC)
commit5c0d3f0db722ad2b81bdab1a2a06d45c198ed975 (patch) (unidiff)
tree327faa51dd84d8d032c83157b841efc34d847f56 /library/lnkproperties.cpp
parentbad368ebceecc3dd976e8eb206c773b5df6d11ef (diff)
downloadopie-5c0d3f0db722ad2b81bdab1a2a06d45c198ed975.zip
opie-5c0d3f0db722ad2b81bdab1a2a06d45c198ed975.tar.gz
opie-5c0d3f0db722ad2b81bdab1a2a06d45c198ed975.tar.bz2
save UI changes to argument list back to .desktop file ;)
Diffstat (limited to 'library/lnkproperties.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/lnkproperties.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp
index 865f590..f0f0bba 100644
--- a/library/lnkproperties.cpp
+++ b/library/lnkproperties.cpp
@@ -304,24 +304,28 @@ void LnkProperties::done(int ok)
304 for(; rot<4; rot++) { 304 for(; rot<4; rot++) {
305 if (d->rotateButtons->find(rot)->isOn()) 305 if (d->rotateButtons->find(rot)->isOn())
306 break; 306 break;
307 } 307 }
308 newrot = QString::number((rot*90)%360); 308 newrot = QString::number((rot*90)%360);
309 } 309 }
310 if ( newrot != lnk->rotation() ) { 310 if ( newrot != lnk->rotation() ) {
311 lnk-> setRotation(newrot); 311 lnk-> setRotation(newrot);
312 changed = TRUE; 312 changed = TRUE;
313 reloadMime = TRUE; 313 reloadMime = TRUE;
314 } 314 }
315 } 315 }
316 if ( d->arguments->text() != lnk->property( "Arguments" ) ) {
317 lnk->setProperty( "Arguments", d->arguments->text() );
318 changed = TRUE;
319 }
316 if ( d->preload->isHidden() && d->locationCombo->currentItem() != currentLocation ) { 320 if ( d->preload->isHidden() && d->locationCombo->currentItem() != currentLocation ) {
317 moveLnk(); 321 moveLnk();
318 } else if ( changed ) { 322 } else if ( changed ) {
319 lnk->writeLink(); 323 lnk->writeLink();
320 } 324 }
321 325
322 if ( !d->preload->isHidden() ) { 326 if ( !d->preload->isHidden() ) {
323 Config cfg("Launcher"); 327 Config cfg("Launcher");
324 cfg.setGroup("Preload"); 328 cfg.setGroup("Preload");
325 QStringList apps = cfg.readListEntry("Apps",','); 329 QStringList apps = cfg.readListEntry("Apps",',');
326 QString exe = lnk->exec(); 330 QString exe = lnk->exec();
327 if ( apps.contains(exe) != d->preload->isChecked() ) { 331 if ( apps.contains(exe) != d->preload->isChecked() ) {