From d624bf47913f76c881f28c6498cec4ad3c007a9b Mon Sep 17 00:00:00 2001 From: sandman Date: Wed, 09 Oct 2002 23:01:34 +0000 Subject: Opening documents via the document tab now starts the corresponding app with the right rotation setting. Filemanager/AdvanceFM doesn't work -- need to investigate this further. --- (limited to 'library/lnkproperties.cpp') 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 @@ #include #include #include +#include #include #include @@ -275,6 +276,8 @@ void LnkProperties::done(int ok) { if ( ok ) { bool changed=FALSE; + bool reloadMime=FALSE; + if ( lnk->name() != d->docname->text() ) { lnk->setName(d->docname->text()); changed=TRUE; @@ -300,6 +303,7 @@ void LnkProperties::done(int ok) if ( newrot != lnk->rotation() ) { lnk-> setRotation(newrot); changed = TRUE; + reloadMime = TRUE; } } if ( d->preload->isHidden() && d->locationCombo->currentItem() != currentLocation ) { @@ -330,6 +334,8 @@ void LnkProperties::done(int ok) cfg.writeEntry("Apps",apps,','); } } + if ( reloadMime ) + MimeType::updateApplications ( ); } QDialog::done( ok ); } -- cgit v0.9.0.2