summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/lnkproperties.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp
index 745ee2c..0b50bae 100644
--- a/library/lnkproperties.cpp
+++ b/library/lnkproperties.cpp
@@ -37,6 +37,7 @@
37#include <qpe/config.h> 37#include <qpe/config.h>
38#include <qpe/storage.h> 38#include <qpe/storage.h>
39#include <qpe/qpemessagebox.h> 39#include <qpe/qpemessagebox.h>
40#include <qpe/mimetype.h>
40 41
41#include <qlineedit.h> 42#include <qlineedit.h>
42#include <qtoolbutton.h> 43#include <qtoolbutton.h>
@@ -275,6 +276,8 @@ void LnkProperties::done(int ok)
275{ 276{
276 if ( ok ) { 277 if ( ok ) {
277 bool changed=FALSE; 278 bool changed=FALSE;
279 bool reloadMime=FALSE;
280
278 if ( lnk->name() != d->docname->text() ) { 281 if ( lnk->name() != d->docname->text() ) {
279 lnk->setName(d->docname->text()); 282 lnk->setName(d->docname->text());
280 changed=TRUE; 283 changed=TRUE;
@@ -300,6 +303,7 @@ void LnkProperties::done(int ok)
300 if ( newrot != lnk->rotation() ) { 303 if ( newrot != lnk->rotation() ) {
301 lnk-> setRotation(newrot); 304 lnk-> setRotation(newrot);
302 changed = TRUE; 305 changed = TRUE;
306 reloadMime = TRUE;
303 } 307 }
304 } 308 }
305 if ( d->preload->isHidden() && d->locationCombo->currentItem() != currentLocation ) { 309 if ( d->preload->isHidden() && d->locationCombo->currentItem() != currentLocation ) {
@@ -330,6 +334,8 @@ void LnkProperties::done(int ok)
330 cfg.writeEntry("Apps",apps,','); 334 cfg.writeEntry("Apps",apps,',');
331 } 335 }
332 } 336 }
337 if ( reloadMime )
338 MimeType::updateApplications ( );
333 } 339 }
334 QDialog::done( ok ); 340 QDialog::done( ok );
335} 341}