author | mickeyl <mickeyl> | 2004-03-08 17:00:43 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-03-08 17:00:43 (UTC) |
commit | 5c0d3f0db722ad2b81bdab1a2a06d45c198ed975 (patch) (unidiff) | |
tree | 327faa51dd84d8d032c83157b841efc34d847f56 /library | |
parent | bad368ebceecc3dd976e8eb206c773b5df6d11ef (diff) | |
download | opie-5c0d3f0db722ad2b81bdab1a2a06d45c198ed975.zip opie-5c0d3f0db722ad2b81bdab1a2a06d45c198ed975.tar.gz opie-5c0d3f0db722ad2b81bdab1a2a06d45c198ed975.tar.bz2 |
save UI changes to argument list back to .desktop file ;)
-rw-r--r-- | library/lnkproperties.cpp | 4 |
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 | |||
@@ -300,32 +300,36 @@ void LnkProperties::done(int ok) | |||
300 | QString newrot; | 300 | QString newrot; |
301 | 301 | ||
302 | if ( d->rotate->isChecked() ) { | 302 | if ( d->rotate->isChecked() ) { |
303 | int rot=0; | 303 | int rot=0; |
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() ) { |
328 | if ( d->preload->isChecked() ) { | 332 | if ( d->preload->isChecked() ) { |
329 | apps.append(exe); | 333 | apps.append(exe); |
330 | #ifndef QT_NO_COP | 334 | #ifndef QT_NO_COP |
331 | QCopEnvelope e("QPE/Application/"+exe.local8Bit(), | 335 | QCopEnvelope e("QPE/Application/"+exe.local8Bit(), |