diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-08-01 12:08:03 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-08-01 12:09:56 +0200 |
commit | 78f1e95df4b8bd1fbc32ed4192676fd4f176f5bf (patch) | |
tree | 63bcfd29c4efbb2532cd574c8366b848e6d5e103 /vcl/unx | |
parent | 63e0644040536558df92e7598e70a56bb5a3422f (diff) |
workaround for KFileDialog remembering its settings
Change-Id: I6f473c246408684c5d952a2161645e4fe76873ea
Diffstat (limited to 'vcl/unx')
-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 4917bf7c3b3a..4bd283699fb6 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) |