-rw-r--r-- | library/lnkproperties.cpp | 6 |
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 @@ -38,4 +38,5 @@ #include <qpe/storage.h> #include <qpe/qpemessagebox.h> +#include <qpe/mimetype.h> #include <qlineedit.h> @@ -276,4 +277,6 @@ void LnkProperties::done(int ok) if ( ok ) { bool changed=FALSE; + bool reloadMime=FALSE; + if ( lnk->name() != d->docname->text() ) { lnk->setName(d->docname->text()); @@ -301,4 +304,5 @@ void LnkProperties::done(int ok) lnk-> setRotation(newrot); changed = TRUE; + reloadMime = TRUE; } } @@ -331,4 +335,6 @@ void LnkProperties::done(int ok) } } + if ( reloadMime ) + MimeType::updateApplications ( ); } QDialog::done( ok ); |