https://bugs.kde.org/show_bug.cgi?id=123097--- Comment #39 from Jan Wolter <
[hidden email]> ---
Created attachment 102709
-->
https://bugs.kde.org/attachment.cgi?id=102709&action=editNew version of Patch
Hi Gilles,
see attached the patch. To update the paramters in CoreDbAccess according to
the dbEngineParameters, I call setupdatebase.cpp:
CoreDbAccess::setParameters(params);
See the complete snippet here:
if (d->databaseWidget->getDbEngineParameters().ignoredDirectories !=
d->databaseWidget->orgDatabasePrm().ignoredDirectories)
{
qCDebug(DIGIKAM_GENERAL_LOG) << "Ignored directories settings changes.
Update...";
DbEngineParameters params = d->databaseWidget->getDbEngineParameters();
settings->setDbEngineParameters(params);
settings->saveSettings();
CoreDbAccess::setParameters(params);
ScanController::instance()->completeCollectionScanInBackground(false);
}
But unfortunately, this crashed the hole application:
*** Error in `/opt/kf5/bin/digikam': double free or corruption (fasttop):
0x00007fffc00dcbe0 ***
Program received signal SIGABRT, Aborted.
Do you know a way to update the parameters in CoreDbAccess correctly?
--
You are receiving this mail because:
You are the assignee for the bug.