workaround for KFileDialog remembering its settings
Change-Id: I6f473c246408684c5d952a2161645e4fe76873ea
This commit is contained in:
parent
63e0644040
commit
78f1e95df4
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue