[digikam] [Bug 123097] SCAN : ignore some directories in digiKam [patch]
Jan Wolter
bugzilla_noreply at kde.org
Fri Dec 9 17:57:44 GMT 2016
https://bugs.kde.org/show_bug.cgi?id=123097
--- Comment #39 from Jan Wolter <online at wolter.re> ---
Created attachment 102709
--> https://bugs.kde.org/attachment.cgi?id=102709&action=edit
New 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.
More information about the Digikam-devel
mailing list