summaryrefslogtreecommitdiff
Unidiff
Diffstat (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
@@ -292,48 +292,52 @@ void LnkProperties::done(int ok)
292 if ( d->categoryEdit->isVisible() ) { 292 if ( d->categoryEdit->isVisible() ) {
293 QArray<int> tmp = d->categoryEdit->newCategories(); 293 QArray<int> tmp = d->categoryEdit->newCategories();
294 if ( lnk->categories() != tmp ) { 294 if ( lnk->categories() != tmp ) {
295 lnk->setCategories( tmp ); 295 lnk->setCategories( tmp );
296 changed = TRUE; 296 changed = TRUE;
297 } 297 }
298 } 298 }
299 if ( !d->rotate->isHidden()) { 299 if ( !d->rotate->isHidden()) {
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(),
332 "enablePreload()"); 336 "enablePreload()");
333#endif 337#endif
334 } else { 338 } else {
335 apps.remove(exe); 339 apps.remove(exe);
336#ifndef QT_NO_COP 340#ifndef QT_NO_COP
337 QCopEnvelope e("QPE/Application/"+exe.local8Bit(), 341 QCopEnvelope e("QPE/Application/"+exe.local8Bit(),
338 "quitIfInvisible()"); 342 "quitIfInvisible()");
339#endif 343#endif