| author | Luboš Luňák <l.lunak@suse.cz> | 2012-08-01 10:08:03 (GMT) |
|---|---|---|
| committer | Luboš Luňák <l.lunak@suse.cz> | 2012-08-01 10:09:56 (GMT) |
| commit | 78f1e95df4b8bd1fbc32ed4192676fd4f176f5bf (patch) (side-by-side diff) | |
| tree | 63bcfd29c4efbb2532cd574c8366b848e6d5e103 | |
| parent | 63e0644040536558df92e7598e70a56bb5a3422f (diff) | |
| download | core-78f1e95df4b8bd1fbc32ed4192676fd4f176f5bf.zip core-78f1e95df4b8bd1fbc32ed4192676fd4f176f5bf.tar.gz | |
workaround for KFileDialog remembering its settings
Change-Id: I6f473c246408684c5d952a2161645e4fe76873ea
| -rw-r--r-- | vcl/unx/kde4/KDE4FilePicker.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/unx/kde4/KDE4FilePicker.cxx b/vcl/unx/kde4/KDE4FilePicker.cxx index 4917bf7..4bd2836 100644 --- a/vcl/unx/kde4/KDE4FilePicker.cxx +++ b/vcl/unx/kde4/KDE4FilePicker.cxx @@ -200,6 +200,11 @@ sal_Int16 SAL_CALL KDE4FilePicker::execute() mutexrelease = Application::ReleaseSolarMutex(); //block and wait for user input int result = _dialog->exec(); + // HACK: KFileDialog uses KConfig("kdeglobals") for saving some settings + // (such as the auto-extension flag), but that doesn't update KGlobal::config() + // (which is probably a KDE bug), so force reading the new configuration, + // otherwise the next opening of the dialog would use the old settings. + KGlobal::config()->reparseConfiguration(); if( !qApp->clipboard()->property( "useEventLoopWhenWaiting" ).toBool()) Application::AcquireSolarMutex( mutexrelease ); if( result == KFileDialog::Accepted) |
